6 implementations of Cookie
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (1)
422public StringValues Cookie
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (1)
422public StringValues Cookie
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http\HttpHeaders.Generated.cs (3)
960StringValues IHeaderDictionary.Cookie 10137StringValues IHeaderDictionary.Cookie 16158StringValues IHeaderDictionary.Cookie
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (1)
422public StringValues Cookie
21 writes to Cookie
HttpAbstractions.SampleApp (1)
Program.cs (1)
22request.Headers.Cookie = "cookie1=value1;cookie2=value2";
Microsoft.AspNetCore.Antiforgery.Test (1)
DefaultAntiforgeryTokenStoreTest.cs (1)
515context.Request.Headers.Cookie = $"{cookieName}={cookieValue}";
Microsoft.AspNetCore.CookiePolicy.Test (7)
CookieConsentTests.cs (7)
132requestContext.Request.Headers.Cookie = ".AspNet.Consent=yes"; 155requestContext.Request.Headers.Cookie = ".AspNet.Consent=yes"; 178requestContext.Request.Headers.Cookie = ".AspNet.Consent=IAmATeapot"; 286requestContext.Request.Headers.Cookie = ".AspNet.Consent=yes"; 378requestContext.Request.Headers.Cookie = ".AspNet.Consent=yes"; 427requestContext.Request.Headers.Cookie = ".AspNet.Consent=yes"; 463requestContext.Request.Headers.Cookie = ".AspNet.Consent=yes";
Microsoft.AspNetCore.Http (2)
Features\RequestCookiesFeature.cs (2)
79HttpRequestFeature.Headers.Cookie = default; 89HttpRequestFeature.Headers.Cookie = _original;
Microsoft.AspNetCore.Http.Extensions.Tests (1)
HeaderDictionaryTypeExtensionsTest.cs (1)
217context.Request.Headers.Cookie = "cookie1=a,cookie2=b";
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
CookieTempDataProviderTest.cs (4)
82context.Request.Headers.Cookie = $"{CookieTempDataProvider.CookieName}={base64AndUrlEncodedDataInCookie}"; 104httpContext.Request.Headers.Cookie = $"{CookieTempDataProvider.CookieName}={base64AndUrlEncodedDataInCookie}"; 277httpContext.Request.Headers.Cookie = requestCookies; 335httpContext.Request.Headers.Cookie = stringBuilder.ToString();
Microsoft.AspNetCore.Rewrite.Tests (1)
IISUrlRewrite\ServerVariableTests.cs (1)
146context.Request.Headers.Cookie = "cookie";
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
Http2\Http2HPackEncoderTests.cs (4)
605headers.Cookie = new string('a', buffer.Length + 1); 620headers.Cookie = new string('a', buffer.Length + 1); 635headers.Cookie = new string('a', buffer.Length - 1); 651headers.Cookie = new string('a', buffer.Length - 1);
3 references to Cookie
Microsoft.AspNetCore.Http (1)
Features\RequestCookiesFeature.cs (1)
61var current = headers.Cookie;
Microsoft.AspNetCore.Http.Extensions (1)
RequestHeaders.cs (1)
173return Headers.Cookie.GetList<CookieHeaderValue>();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
HttpRequestHeadersTests.cs (1)
690var parsedCookieHeaderValue = ((IHeaderDictionary)headers).Cookie.ToString();