79 references to Cookie
CodeGenerator (2)
src\Servers\Kestrel\shared\KnownHeaders.cs (2)
130HeaderNames.Cookie, 150HeaderNames.Cookie,
InMemory.FunctionalTests (8)
Http2\Http2ConnectionTests.cs (4)
3079new KeyValuePair<string, string>(HeaderNames.Cookie, "a=0"), 3080new KeyValuePair<string, string>(HeaderNames.Cookie, "b=1"), 3081new KeyValuePair<string, string>(HeaderNames.Cookie, "c=2"), 3093Assert.Equal("a=0; b=1; c=2", _receivedHeaders[HeaderNames.Cookie]);
Http3\Http3ConnectionTests.cs (4)
132new KeyValuePair<string, string>(HeaderNames.Cookie, "a=0"), 133new KeyValuePair<string, string>(HeaderNames.Cookie, "b=1"), 134new KeyValuePair<string, string>(HeaderNames.Cookie, "c=2"), 145receivedHeaders = context.Request.Headers[HeaderNames.Cookie];
Microsoft.AspNetCore.Authentication.Test (5)
TwitterTests.cs (3)
219request.Headers.Add(HeaderNames.Cookie, cookie.ToString()); 269request.Headers.Add(HeaderNames.Cookie, cookie.ToString()); 376request.Headers.Add(HeaderNames.Cookie, cookie.ToString());
WsFederation\WsFederationTest.cs (1)
269request.Headers.Add(HeaderNames.Cookie, new CookieHeaderValue(cookie.Name, cookie.Value).ToString());
WsFederation\WsFederationTest_Handler.cs (1)
267request.Headers.Add(HeaderNames.Cookie, new CookieHeaderValue(cookie.Name, cookie.Value).ToString());
Microsoft.AspNetCore.HeaderParsing (1)
CommonHeaders.cs (1)
55public static HeaderSetup<IReadOnlyList<CookieHeaderValue>> Cookie => new(HeaderNames.Cookie, CookieHeaderValueListParser.Instance);
Microsoft.AspNetCore.HeaderParsing.Tests (1)
CommonHeadersTests.cs (1)
71Assert.Equal(HeaderNames.Cookie, CommonHeaders.Cookie.HeaderName);
Microsoft.AspNetCore.Http.Extensions (1)
RequestHeaders.cs (1)
177Headers.SetList(HeaderNames.Cookie, value);
Microsoft.AspNetCore.Http.Extensions.Tests (1)
HeaderDictionaryTypeExtensionsTest.cs (1)
219var result = context.Request.GetTypedHeaders().GetList<CookieHeaderValue>(HeaderNames.Cookie);
Microsoft.AspNetCore.Http.Features (2)
IHeaderDictionary.Keyed.cs (2)
101StringValues Cookie { get => this[HeaderNames.Cookie]; set => this[HeaderNames.Cookie] = value; }
Microsoft.AspNetCore.HttpLogging (2)
W3CLoggerOptions.cs (1)
144clonedSet.Remove(HeaderNames.Cookie);
W3CLoggingMiddleware.cs (1)
172if (request.Headers.TryGetValue(HeaderNames.Cookie, out var cookie))
Microsoft.AspNetCore.Identity.FunctionalTests (2)
MapIdentityApiTests.cs (2)
223client.DefaultRequestHeaders.Add(HeaderNames.Cookie, cookie); 1481client.DefaultRequestHeaders.Add(HeaderNames.Cookie, cookie);
Microsoft.AspNetCore.Mvc.Testing (1)
Handlers\CookieContainerHandler.cs (1)
47request.Headers.Add(HeaderNames.Cookie, cookieHeader);
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheEntryFormatter.cs (1)
428HeaderNames.Cookie,
Microsoft.AspNetCore.Rewrite (2)
ApacheModRewrite\ServerVariables.cs (1)
28return new HeaderSegment(HeaderNames.Cookie);
IISUrlRewrite\ServerVariables.cs (1)
43managedVariableThunk = () => new HeaderSegment(HeaderNames.Cookie);
Microsoft.AspNetCore.Server.HttpSys (8)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
35HeaderNames.WWWAuthenticate, HeaderNames.Authorization, HeaderNames.ProxyAuthenticate, HeaderNames.ProxyAuthorization, HeaderNames.SetCookie, HeaderNames.Cookie,
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1091if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1305if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1553if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1840if (string.Equals(key, HeaderNames.Cookie, StringComparison.Ordinal)) 2263yield return HeaderNames.Cookie; 2599yield return new KeyValuePair<string, StringValues>(HeaderNames.Cookie, Cookie); 2765HttpSysRequestHeader.Cookie => HeaderNames.Cookie,
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
RequestHeaderTests.cs (1)
310yield return (HttpSysRequestHeader.Cookie, HeaderNames.Cookie);
Microsoft.AspNetCore.Server.IIS (8)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
35HeaderNames.WWWAuthenticate, HeaderNames.Authorization, HeaderNames.ProxyAuthenticate, HeaderNames.ProxyAuthorization, HeaderNames.SetCookie, HeaderNames.Cookie,
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1091if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1305if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1553if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1840if (string.Equals(key, HeaderNames.Cookie, StringComparison.Ordinal)) 2263yield return HeaderNames.Cookie; 2599yield return new KeyValuePair<string, StringValues>(HeaderNames.Cookie, Cookie); 2765HttpSysRequestHeader.Cookie => HeaderNames.Cookie,
Microsoft.AspNetCore.Server.Kestrel.Core (20)
Internal\Http\HttpHeaders.Generated.cs (20)
315HeaderNames.Cookie, 2751if (ReferenceEquals(HeaderNames.Cookie, key)) 2797if (HeaderNames.Cookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 3715if (ReferenceEquals(HeaderNames.Cookie, key)) 3746if (HeaderNames.Cookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 4482if (ReferenceEquals(HeaderNames.Cookie, key)) 4533if (HeaderNames.Cookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 5589if (ReferenceEquals(HeaderNames.Cookie, key)) 5640if (HeaderNames.Cookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 7199array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Cookie, _headers._Cookie); 7587nameStr = HeaderNames.Cookie; 8009nameStr = HeaderNames.Cookie; 8173nameStr = HeaderNames.Cookie; 8499_current = new KeyValuePair<string, StringValues>(HeaderNames.Cookie, _collection._headers._Cookie); 10142if (!TryGetUnknown(HeaderNames.Cookie, ref value)) 10151ValidateHeaderValueCharacters(HeaderNames.Cookie, value, EncodingSelector); 10152SetValueUnknown(HeaderNames.Cookie, value); 16163if (!TryGetUnknown(HeaderNames.Cookie, ref value)) 16172ValidateHeaderValueCharacters(HeaderNames.Cookie, value, EncodingSelector); 16173SetValueUnknown(HeaderNames.Cookie, value);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
HttpRequestHeadersTests.cs (1)
671var cookieNameBytes = Encoding.ASCII.GetBytes(HeaderNames.Cookie);
src\Servers\Kestrel\shared\KnownHeaders.cs (2)
130HeaderNames.Cookie, 150HeaderNames.Cookie,
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
BytesToStringBenchmark.cs (1)
54_headerName = HeaderNames.Cookie;
Http2\Http2ConnectionBenchmarkBase.cs (1)
65_httpRequestHeaders[HeaderNames.Cookie] = cookies;
Microsoft.AspNetCore.Shared.Tests (8)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
35HeaderNames.WWWAuthenticate, HeaderNames.Authorization, HeaderNames.ProxyAuthenticate, HeaderNames.ProxyAuthorization, HeaderNames.SetCookie, HeaderNames.Cookie,
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1091if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1305if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1553if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1840if (string.Equals(key, HeaderNames.Cookie, StringComparison.Ordinal)) 2263yield return HeaderNames.Cookie; 2599yield return new KeyValuePair<string, StringValues>(HeaderNames.Cookie, Cookie); 2765HttpSysRequestHeader.Cookie => HeaderNames.Cookie,