3986 references to HeaderNames
Aspire.Dashboard.Tests (1)
Integration\StartupTests.cs (1)
697Assert.NotEmpty(response.Headers.GetValues(HeaderNames.ContentSecurityPolicy).Single());
CodeGenerator (127)
src\Servers\Kestrel\shared\KnownHeaders.cs (127)
24HeaderNames.Allow, 25HeaderNames.AltSvc, 26HeaderNames.TransferEncoding, 27HeaderNames.ContentLength, 28HeaderNames.Connection, 34HeaderNames.Host, 37public static readonly string[] DefinedHeaderNames = typeof(HeaderNames) 46HeaderNames.DNT, 94HeaderNames.Accept, 95HeaderNames.Connection, 96HeaderNames.Host, 97HeaderNames.UserAgent 101HeaderNames.Connection, 102HeaderNames.Date, 103HeaderNames.ContentType, 104HeaderNames.Server, 105HeaderNames.ContentLength, 109HeaderNames.CacheControl, 110HeaderNames.Connection, 111HeaderNames.Date, 112HeaderNames.GrpcEncoding, 113HeaderNames.KeepAlive, 114HeaderNames.Pragma, 115HeaderNames.TransferEncoding, 116HeaderNames.Upgrade, 117HeaderNames.Via, 118HeaderNames.Warning, 119HeaderNames.ContentType, 124HeaderNames.Origin, 125HeaderNames.AccessControlRequestMethod, 126HeaderNames.AccessControlRequestHeaders, 130HeaderNames.Cookie, 131HeaderNames.Connection, 132HeaderNames.TransferEncoding, 136HeaderNames.Host 144HeaderNames.Accept, 145HeaderNames.AcceptCharset, 146HeaderNames.AcceptEncoding, 147HeaderNames.AcceptLanguage, 149HeaderNames.Authorization, 150HeaderNames.Cookie, 151HeaderNames.Expect, 152HeaderNames.From, 153HeaderNames.GrpcAcceptEncoding, 154HeaderNames.GrpcTimeout, 155HeaderNames.Host, 156HeaderNames.IfMatch, 157HeaderNames.IfModifiedSince, 158HeaderNames.IfNoneMatch, 159HeaderNames.IfRange, 160HeaderNames.IfUnmodifiedSince, 161HeaderNames.MaxForwards, 163HeaderNames.ProxyAuthorization, 164HeaderNames.Referer, 165HeaderNames.Range, 166HeaderNames.TE, 167HeaderNames.Translate, 168HeaderNames.UserAgent, 169HeaderNames.UpgradeInsecureRequests, 170HeaderNames.RequestId, 171HeaderNames.CorrelationContext, 172HeaderNames.TraceParent, 173HeaderNames.TraceState, 174HeaderNames.Baggage, 191Name = HeaderNames.ContentLength, 193PrimaryHeader = requestPrimaryHeaders.Contains(HeaderNames.ContentLength) 199HeaderNames.Connection, 200HeaderNames.Server, 201HeaderNames.Date, 202HeaderNames.TransferEncoding, 203HeaderNames.AltSvc 207HeaderNames.Connection, 208HeaderNames.Server, 209HeaderNames.Date, 210HeaderNames.TransferEncoding, 211HeaderNames.AltSvc 216HeaderNames.AccessControlAllowCredentials, 217HeaderNames.AccessControlAllowHeaders, 218HeaderNames.AccessControlAllowMethods, 219HeaderNames.AccessControlAllowOrigin, 220HeaderNames.AccessControlExposeHeaders, 221HeaderNames.AccessControlMaxAge, 225HeaderNames.AcceptRanges, 226HeaderNames.Age, 227HeaderNames.Allow, 228HeaderNames.AltSvc, 229HeaderNames.ETag, 230HeaderNames.Location, 231HeaderNames.ProxyAuthenticate, 232HeaderNames.ProxyConnection, 233HeaderNames.RetryAfter, 234HeaderNames.Server, 235HeaderNames.SetCookie, 236HeaderNames.Vary, 237HeaderNames.Expires, 238HeaderNames.WWWAuthenticate, 239HeaderNames.ContentRange, 240HeaderNames.ContentEncoding, 241HeaderNames.ContentLanguage, 242HeaderNames.ContentLocation, 243HeaderNames.ContentMD5, 244HeaderNames.LastModified, 245HeaderNames.Trailer, 262Name = HeaderNames.ContentLength, 264EnhancedSetter = enhancedHeaders.Contains(HeaderNames.ContentLength), 265PrimaryHeader = responsePrimaryHeaders.Contains(HeaderNames.ContentLength) 271HeaderNames.ETag, 272HeaderNames.GrpcMessage, 273HeaderNames.GrpcStatus 290HeaderNames.Connection, 291HeaderNames.TransferEncoding, 292HeaderNames.KeepAlive, 293HeaderNames.Upgrade, 294HeaderNames.ProxyConnection 378if (header.Name == HeaderNames.ContentLength) 420if (header.Name == HeaderNames.ContentLength) 869public {(header.Name == HeaderNames.Connection ? "override " : "")}StringValues Header{header.Identifier} 870{{{(header.Name == HeaderNames.ContentLength ? $@" 906{Each(loop.Headers.Where(header => header.Name != HeaderNames.ContentLength && !NonApiHeaders.Contains(header.Identifier)), header => $@" 976{{{(header.Name == HeaderNames.ContentLength ? @" 992{{{(header.Name == HeaderNames.ContentLength ? @" 1021{{{(header.Name == HeaderNames.ContentLength ? $@" 1030{{{(header.Name == HeaderNames.ContentLength ? $@" 1052{{{(header.Name == HeaderNames.ContentLength ? $@" 1070{{{(header.Name == HeaderNames.ContentLength ? $@" 1100{{{(header.Name == HeaderNames.ContentLength ? @" 1118{{{(header.Name == HeaderNames.ContentLength ? @"
IIS.FunctionalTests (9)
Http2TrailersResetTests.cs (5)
118Assert.True(response.Content.Headers.TryGetValues(HeaderNames.ContentLength, out var contentLength), HeaderNames.ContentLength); 136Assert.True(response.Content.Headers.TryGetValues(HeaderNames.ContentLength, out var contentLength), HeaderNames.ContentLength); 265Assert.False(decodedHeaders.ContainsKey(HeaderNames.Connection));
Http3Tests.cs (2)
73Assert.Equal(altsvc, response1.Headers.GetValues(HeaderNames.AltSvc).SingleOrDefault()); 94Assert.Equal(altsvc, response2.Headers.GetValues(HeaderNames.AltSvc).SingleOrDefault());
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (1)
157new KeyValuePair<string, string>(HeaderNames.ContentLength, "11"),
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
533Assert.True(response.Content.Headers.TryGetValues(Net.Http.Headers.HeaderNames.ContentType, out headerValues));
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (1)
157new KeyValuePair<string, string>(HeaderNames.ContentLength, "11"),
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
533Assert.True(response.Content.Headers.TryGetValues(Net.Http.Headers.HeaderNames.ContentType, out headerValues));
InMemory.FunctionalTests (185)
Http2\Http2ConnectionTests.cs (13)
175new KeyValuePair<string, string>(HeaderNames.ContentType, "application/json") 227new KeyValuePair<string, string>(HeaderNames.ContentType, "application/json") 321new KeyValuePair<string, string>(HeaderNames.ContentType, "application/json") 2390Assert.Equal("SetCookie!", handler.Headers[HeaderNames.SetCookie]); 2391Assert.Equal("ContentDisposition!", handler.Headers[HeaderNames.ContentDisposition]); 2392Assert.Equal("0", handler.Headers[HeaderNames.ContentLength]); 2407Assert.Equal("SetCookie!", handler.Headers[HeaderNames.SetCookie]); 2408Assert.Equal("ContentDisposition!", handler.Headers[HeaderNames.ContentDisposition]); 2409Assert.Equal("0", handler.Headers[HeaderNames.ContentLength]); 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]);
Http2\Http2StreamTests.cs (79)
113Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 132Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 181new KeyValuePair<string, string>(HeaderNames.ContentLength, "11"), 188Assert.False(context.Request.Headers.ContainsKey(HeaderNames.TransferEncoding)); 239Assert.False(context.Request.Headers.ContainsKey(HeaderNames.TransferEncoding)); 504Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 613Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 614Assert.Equal("abc", _decodedHeaders[HeaderNames.Host]); 644Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 645Assert.Equal("abc", _decodedHeaders[HeaderNames.Host]); 675Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 676Assert.Equal("def", _decodedHeaders[HeaderNames.Host]); 706Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 707Assert.Equal("def", _decodedHeaders[HeaderNames.Host]); 828Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 862Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 873new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 899Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 923new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 940Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 951new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 983Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 994new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1026Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1038new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1079Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1090new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1123new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1144new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1179new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1214new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1250new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1304new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1321Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1359Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]); 1398Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]); 1432Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1502Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1701Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1779Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]); 1850Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]); 1862new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1888Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1903new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1935Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1974Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2022Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2046new KeyValuePair<string, string>(HeaderNames.ContentLength, "18"), 2085Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2106new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 2136Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2216Assert.Equal("Custom 你好 Type", _decodedHeaders[HeaderNames.ContentType]); 2267Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2300Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2551Assert.Equal("Custom 你好 Tag", _decodedHeaders[HeaderNames.ETag]); 2552Assert.Equal("Custom 你好 Accept", _decodedHeaders[HeaderNames.Accept]); 3120Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 3557Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize, _decodedHeaders[HeaderNames.ETag].Length); 3594Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize, _decodedHeaders[HeaderNames.ETag].Length); 3595Assert.Equal(30, _decodedHeaders[HeaderNames.TE].Length); 3643Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize, _decodedHeaders[HeaderNames.ETag].Length); 3644Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize, _decodedHeaders[HeaderNames.TE].Length); 3706Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize - 20, _decodedHeaders[HeaderNames.ETag].Length); 3814Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 4281Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 4474Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]); 4520Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]); 4560Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]); 4624Assert.Equal("54", _decodedHeaders[HeaderNames.ContentLength]); 4898Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 5020Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 5132Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 5355Assert.Equal("25", _decodedHeaders[HeaderNames.ContentLength]); 5426Assert.Equal("25", _decodedHeaders[HeaderNames.ContentLength]); 5845response.Headers.Add(HeaderNames.TransferEncoding, "chunked"); 5846response.Headers.Add(HeaderNames.Upgrade, "websocket"); 5847response.Headers.Add(HeaderNames.Connection, "Keep-Alive"); 5848response.Headers.Add(HeaderNames.KeepAlive, "timeout=5, max=1000"); 5849response.Headers.Add(HeaderNames.ProxyConnection, "keep-alive");
Http2\Http2TestBase.cs (2)
65new KeyValuePair<string, string>(HeaderNames.Expect, "100-continue"), 1360Assert.True(_receivedHeaders.TryGetValue(HeaderNames.Host, out var host), header.Key);
Http2\Http2WebSocketTests.cs (33)
55new KeyValuePair<string, string>(HeaderNames.WebSocketSubProtocols, "chat, superchat"), 56new KeyValuePair<string, string>(HeaderNames.SecWebSocketExtensions, "permessage-deflate"), 57new KeyValuePair<string, string>(HeaderNames.SecWebSocketVersion, "13"), 58new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 121new KeyValuePair<string, string>(HeaderNames.WebSocketSubProtocols, "chat, superchat"), 122new KeyValuePair<string, string>(HeaderNames.SecWebSocketExtensions, "permessage-deflate"), 123new KeyValuePair<string, string>(HeaderNames.SecWebSocketVersion, "13"), 124new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 212new KeyValuePair<string, string>(HeaderNames.WebSocketSubProtocols, "chat, superchat"), 213new KeyValuePair<string, string>(HeaderNames.SecWebSocketExtensions, "permessage-deflate"), 214new KeyValuePair<string, string>(HeaderNames.SecWebSocketVersion, "13"), 215new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 345new KeyValuePair<string, string>(HeaderNames.WebSocketSubProtocols, "chat, superchat"), 346new KeyValuePair<string, string>(HeaderNames.SecWebSocketExtensions, "permessage-deflate"), 347new KeyValuePair<string, string>(HeaderNames.SecWebSocketVersion, "13"), 348new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 414new KeyValuePair<string, string>(HeaderNames.WebSocketSubProtocols, "chat, superchat"), 415new KeyValuePair<string, string>(HeaderNames.SecWebSocketExtensions, "permessage-deflate"), 416new KeyValuePair<string, string>(HeaderNames.SecWebSocketVersion, "13"), 417new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 482new KeyValuePair<string, string>(HeaderNames.WebSocketSubProtocols, "chat, superchat"), 483new KeyValuePair<string, string>(HeaderNames.SecWebSocketExtensions, "permessage-deflate"), 484new KeyValuePair<string, string>(HeaderNames.SecWebSocketVersion, "13"), 485new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 544new KeyValuePair<string, string>(HeaderNames.WebSocketSubProtocols, "chat, superchat"), 545new KeyValuePair<string, string>(HeaderNames.SecWebSocketExtensions, "permessage-deflate"), 546new KeyValuePair<string, string>(HeaderNames.SecWebSocketVersion, "13"), 547new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 565Assert.Equal("2", _decodedHeaders[HeaderNames.ContentLength]); 654new KeyValuePair<string, string>(HeaderNames.WebSocketSubProtocols, "chat, superchat"), 655new KeyValuePair<string, string>(HeaderNames.SecWebSocketExtensions, "permessage-deflate"), 656new KeyValuePair<string, string>(HeaderNames.SecWebSocketVersion, "13"), 657new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"),
Http3\Http3ConnectionTests.cs (10)
99new KeyValuePair<string, string>(HeaderNames.Expect, "100-continue"), 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]; 419new KeyValuePair<string, string>(HeaderNames.ContentType, "application/json"), 457new KeyValuePair<string, string>(HeaderNames.ContentType, "application/json") 558new KeyValuePair<string, string>(HeaderNames.ContentType, "application/json") 636new KeyValuePair<string, string>(HeaderNames.Expect, "100-continue"), 690new KeyValuePair<string, string>(HeaderNames.Expect, "100-continue"),
Http3\Http3StreamTests.cs (41)
392Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 393Assert.Equal("abc", responseHeaders[HeaderNames.Host]); 415Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 416Assert.Equal("abc", responseHeaders[HeaderNames.Host]); 438Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 439Assert.Equal("def", responseHeaders[HeaderNames.Host]); 461Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 462Assert.Equal("def", responseHeaders[HeaderNames.Host]); 553new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 571Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 582new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 607Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 618new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 642Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 660response.Headers.Add(HeaderNames.TransferEncoding, "chunked"); 661response.Headers.Add(HeaderNames.Upgrade, "websocket"); 662response.Headers.Add(HeaderNames.Connection, "Keep-Alive"); 663response.Headers.Add(HeaderNames.KeepAlive, "timeout=5, max=1000"); 664response.Headers.Add(HeaderNames.ProxyConnection, "keep-alive"); 686new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 758new KeyValuePair<string, string>(HeaderNames.ContentType, "application/json") 792new KeyValuePair<string, string>(HeaderNames.ContentType, "application/json") 910Assert.Equal("Custom 你好 Type", responseHeaders[HeaderNames.ContentType]); 1059Assert.Equal("Custom 你好 Tag", responseTrailers[HeaderNames.ETag]); 1060Assert.Equal("Custom 你好 Accept", responseTrailers[HeaderNames.Accept]); 1266Assert.Equal("0", decodedHeaders[HeaderNames.ContentLength]); 1363Assert.Equal("0", decodedHeaders[HeaderNames.ContentLength]); 1623Assert.Equal("25", decodedHeaders[HeaderNames.ContentLength]); 1681Assert.Equal("25", decodedHeaders[HeaderNames.ContentLength]); 2340Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2398Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2503new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 2522Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2537new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 2563Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2595Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2635Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2659new KeyValuePair<string, string>(HeaderNames.ContentLength, "18"), 2690Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2711new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 2734Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
Http3\WebTransport\WebTransportHandshakeTests.cs (6)
73new KeyValuePair<string, string>(HeaderNames.Origin, "server.example.com"), 94nameof(HeaderNames.Origin), "server.example.com")] 102nameof(HeaderNames.Origin), "server.example.com")] // no path 110nameof(HeaderNames.Origin), "server.example.com")] // no authority 162nameof(HeaderNames.Origin) => HeaderNames.Origin,
Http3\WebTransport\WebTransportTestUtilities.cs (1)
68new KeyValuePair<string, string>(HeaderNames.Origin, "server.example.com"),
InteropWebsite (1)
Startup.cs (1)
44var aspNetCoreVersion = typeof(HeaderNames).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion ?? "Unknown";
LocalizationWebsite (1)
StartupContentLanguageHeader.cs (1)
36var hasContentLanguageHeader = context.Response.Headers.ContainsKey(HeaderNames.ContentLanguage);
Microsoft.AspNetCore.Antiforgery (3)
Internal\DefaultAntiforgery.cs (3)
247if (!_options.SuppressXFrameOptionsHeader && !httpContext.Response.Headers.ContainsKey(HeaderNames.XFrameOptions)) 366if (responseHeaders.TryGetValue(HeaderNames.CacheControl, out var cacheControlHeader) && 381if (responseHeaders.TryGetValue(HeaderNames.Pragma, out var pragmaHeader) && pragmaHeader.Count > 0)
Microsoft.AspNetCore.Authentication.BearerToken (1)
BearerTokenHandler.cs (1)
60Response.Headers.Append(HeaderNames.WWWAuthenticate, "Bearer");
Microsoft.AspNetCore.Authentication.Cookies (1)
CookieAuthenticationEvents.cs (1)
107return string.Equals(request.Query[HeaderNames.XRequestedWith], "XMLHttpRequest", StringComparison.Ordinal) ||
Microsoft.AspNetCore.Authentication.JwtBearer (2)
JwtBearerHandler.cs (2)
302Response.Headers.Append(HeaderNames.WWWAuthenticate, Options.Challenge); 344Response.Headers.Append(HeaderNames.WWWAuthenticate, builder.ToString());
Microsoft.AspNetCore.Authentication.Negotiate (3)
NegotiateHandler.cs (3)
183Response.Headers.Append(HeaderNames.WWWAuthenticate, AuthHeaderPrefix + outgoing); 197Response.Headers.Append(HeaderNames.WWWAuthenticate, AuthHeaderPrefix + outgoing); 395Response.Headers.Append(HeaderNames.WWWAuthenticate, NegotiateVerb);
Microsoft.AspNetCore.Authentication.Negotiate.Test (5)
EventTests.cs (2)
33Assert.False(context.Response.Headers.ContainsKey(HeaderNames.WWWAuthenticate)); 294Assert.False(result.Response.Headers.ContainsKey(HeaderNames.WWWAuthenticate));
NegotiateHandlerTests.cs (3)
165Assert.False(result.Response.Headers.ContainsKey(HeaderNames.WWWAuthenticate)); 290Assert.False(result.Response.Headers.ContainsKey(HeaderNames.WWWAuthenticate)); 312Assert.DoesNotContain(HeaderNames.WWWAuthenticate, result.Response.Headers);
Microsoft.AspNetCore.Authentication.Test (18)
OpenIdConnect\OpenIdConnectEventTests.cs (3)
1015Assert.True(response.Headers.TryGetValues(HeaderNames.SetCookie, out var values)); 1041Assert.False(response.Headers.TryGetValues(HeaderNames.SetCookie, out var values)); 1067Assert.False(response.Headers.TryGetValues(HeaderNames.SetCookie, out var values));
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (3)
1015Assert.True(response.Headers.TryGetValues(HeaderNames.SetCookie, out var values)); 1041Assert.False(response.Headers.TryGetValues(HeaderNames.SetCookie, out var values)); 1067Assert.False(response.Headers.TryGetValues(HeaderNames.SetCookie, out var values));
TwitterTests.cs (6)
212Assert.True(transaction.Response.Headers.TryGetValues(HeaderNames.SetCookie, out var setCookie)); 219request.Headers.Add(HeaderNames.Cookie, cookie.ToString()); 262Assert.True(transaction.Response.Headers.TryGetValues(HeaderNames.SetCookie, out var setCookie)); 269request.Headers.Add(HeaderNames.Cookie, cookie.ToString()); 369Assert.True(transaction.Response.Headers.TryGetValues(HeaderNames.SetCookie, out var setCookie)); 376request.Headers.Add(HeaderNames.Cookie, cookie.ToString());
WsFederation\WsFederationTest.cs (3)
194var cookie = response.Headers.GetValues(HeaderNames.SetCookie).Single(); 264var cookies = SetCookieHeaderValue.ParseList(response.Headers.GetValues(HeaderNames.SetCookie).ToList()); 269request.Headers.Add(HeaderNames.Cookie, new CookieHeaderValue(cookie.Name, cookie.Value).ToString());
WsFederation\WsFederationTest_Handler.cs (3)
192var cookie = response.Headers.GetValues(HeaderNames.SetCookie).Single(); 262var cookies = SetCookieHeaderValue.ParseList(response.Headers.GetValues(HeaderNames.SetCookie).ToList()); 267request.Headers.Add(HeaderNames.Cookie, new CookieHeaderValue(cookie.Name, cookie.Value).ToString());
Microsoft.AspNetCore.Components.Endpoints (5)
Builder\ResourceCollectionUrlEndpoint.cs (5)
214context.Response.Headers[HeaderNames.ContentEncoding] = "gzip"; 215context.Response.Headers[HeaderNames.Vary] = HeaderNames.AcceptEncoding; 226context.Response.Headers[HeaderNames.CacheControl] = "max-age=31536000, immutable"; 231context.Response.Headers[HeaderNames.CacheControl] = "no-cache, must-revalidate";
Microsoft.AspNetCore.Components.WebAssembly.Server (3)
ComponentsWebAssemblyApplicationBuilderExtensions.cs (1)
107fileContext.Context.Response.Headers.Append(HeaderNames.CacheControl, "no-cache");
ContentEncodingNegotiator.cs (2)
92context.Response.Headers.Append(HeaderNames.Vary, HeaderNames.ContentEncoding);
Microsoft.AspNetCore.Components.WebAssembly.Server.Tests (34)
ContentEncodingNegotiatorTests.cs (34)
24httpContext.Request.Headers.Append(HeaderNames.AcceptEncoding, encoding); 29Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.ContentEncoding, out var selectedEncoding)); 31Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.Vary, out var varyHeader)); 32Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray()); 46httpContext.Request.Headers.Append(HeaderNames.AcceptEncoding, encoding); 51Assert.False(httpContext.Response.Headers.TryGetValue(HeaderNames.ContentEncoding, out var selectedEncoding)); 52Assert.False(httpContext.Response.Headers.TryGetValue(HeaderNames.Vary, out var varyHeader)); 67httpContext.Request.Headers.Append(HeaderNames.AcceptEncoding, encoding); 72Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.ContentEncoding, out var selectedEncoding)); 74Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.Vary, out var varyHeader)); 75Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray()); 90httpContext.Request.Headers.Append(HeaderNames.AcceptEncoding, encoding); 95Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.ContentEncoding, out var selectedEncoding)); 97Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.Vary, out var varyHeader)); 98Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray()); 113httpContext.Request.Headers.Append(HeaderNames.AcceptEncoding, encoding); 118Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.ContentEncoding, out var selectedEncoding)); 120Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.Vary, out var varyHeader)); 121Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray()); 136httpContext.Request.Headers.Append(HeaderNames.AcceptEncoding, encoding); 141Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.ContentEncoding, out var selectedEncoding)); 143Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.Vary, out var varyHeader)); 144Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray()); 159httpContext.Request.Headers.Append(HeaderNames.AcceptEncoding, encoding); 164Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.ContentEncoding, out var selectedEncoding)); 166Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.Vary, out var varyHeader)); 167Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray()); 181httpContext.Request.Headers.Append(HeaderNames.AcceptEncoding, encoding); 186Assert.False(httpContext.Response.Headers.TryGetValue(HeaderNames.ContentEncoding, out var selectedEncoding)); 187Assert.False(httpContext.Response.Headers.TryGetValue(HeaderNames.Vary, out var varyHeader)); 202httpContext.Request.Headers.Append(HeaderNames.AcceptEncoding, encoding); 207Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.ContentEncoding, out var selectedEncoding)); 209Assert.True(httpContext.Response.Headers.TryGetValue(HeaderNames.Vary, out var varyHeader)); 210Assert.Contains(HeaderNames.ContentEncoding, varyHeader.ToArray());
Microsoft.AspNetCore.CookiePolicy.Test (3)
CookieChunkingTests.cs (3)
290httpContext.Response.Headers[HeaderNames.SetCookie] = new[] 303Assert.Equal(8, httpContext.Response.Headers[HeaderNames.SetCookie].Count); 314}, httpContext.Response.Headers[HeaderNames.SetCookie]);
Microsoft.AspNetCore.Cors (10)
Infrastructure\CorsConstants.cs (9)
22public static readonly string Origin = HeaderNames.Origin; 42public static readonly string AccessControlRequestMethod = HeaderNames.AccessControlRequestMethod; 47public static readonly string AccessControlRequestHeaders = HeaderNames.AccessControlRequestHeaders; 52public static readonly string AccessControlAllowOrigin = HeaderNames.AccessControlAllowOrigin; 57public static readonly string AccessControlAllowHeaders = HeaderNames.AccessControlAllowHeaders; 62public static readonly string AccessControlExposeHeaders = HeaderNames.AccessControlExposeHeaders; 67public static readonly string AccessControlAllowMethods = HeaderNames.AccessControlAllowMethods; 72public static readonly string AccessControlAllowCredentials = HeaderNames.AccessControlAllowCredentials; 77public static readonly string AccessControlMaxAge = HeaderNames.AccessControlMaxAge;
Infrastructure\CorsService.cs (1)
205headers.Append(HeaderNames.Vary, "Origin");
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (2)
HealthCheckMiddlewareTests.cs (2)
434Assert.Equal(new string[] { "Thu, 01 Jan 1970 00:00:00 GMT" }, response.Content.Headers.GetValues(HeaderNames.Expires)); 469Assert.False(response.Content.Headers.Contains(HeaderNames.Expires));
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (10)
Logging\AcceptanceTests.cs (5)
90context.Response.Headers.Append(HeaderNames.TransferEncoding, "chunked"); 277x.RequestHeadersDataClasses.Add(HeaderNames.Accept, DataClassification.None); 278x.ResponseHeadersDataClasses.Add(HeaderNames.TransferEncoding, DataClassification.None); 348x.RequestHeadersDataClasses.Add(HeaderNames.Accept, DataClassification.None); 349x.ResponseHeadersDataClasses.Add(HeaderNames.TransferEncoding, DataClassification.None);
Logging\HeaderReaderTests.cs (5)
22var headers = new HeaderDictionary(new Dictionary<string, StringValues> { [HeaderNames.Accept] = MediaTypeNames.Text.Plain }); 30var reader = new HeaderReader(new Dictionary<string, DataClassification> { [HeaderNames.Accept] = DataClassification.Unknown }, null!, string.Empty); 44[HeaderNames.AcceptCharset] = DataClassification.Unknown 52[HeaderNames.AcceptCharset] = MediaTypeNames.Text.Xml, 53[HeaderNames.ContentType] = MediaTypeNames.Application.Pdf
Microsoft.AspNetCore.Grpc.JsonTranscoding (4)
Internal\GrpcProtocolConstants.cs (4)
20HeaderNames.ContentType, 21HeaderNames.TE, 22HeaderNames.Host, 23HeaderNames.AcceptEncoding
Microsoft.AspNetCore.HeaderParsing (16)
CommonHeaders.cs (16)
20public static HeaderSetup<HostHeaderValue> Host => new(HeaderNames.Host, HostHeaderValueParser.Instance); 25public static HeaderSetup<IReadOnlyList<MediaTypeHeaderValue>> Accept => new(HeaderNames.Accept, MediaTypeHeaderValueListParser.Instance); 30public static HeaderSetup<IReadOnlyList<StringWithQualityHeaderValue>> AcceptEncoding => new(HeaderNames.AcceptEncoding, StringWithQualityHeaderValueListParser.Instance, cacheable: true); 35public static HeaderSetup<IReadOnlyList<StringWithQualityHeaderValue>> AcceptLanguage => new(HeaderNames.AcceptLanguage, StringWithQualityHeaderValueListParser.Instance, cacheable: true); 40public static HeaderSetup<CacheControlHeaderValue> CacheControl => new(HeaderNames.CacheControl, CacheControlHeaderValueParser.Instance, cacheable: true); 45public static HeaderSetup<ContentDispositionHeaderValue> ContentDisposition => new(HeaderNames.ContentDisposition, ContentDispositionHeaderValueParser.Instance, cacheable: true); 50public static HeaderSetup<MediaTypeHeaderValue> ContentType => new(HeaderNames.ContentType, MediaTypeHeaderValueParser.Instance, cacheable: true); 55public static HeaderSetup<IReadOnlyList<CookieHeaderValue>> Cookie => new(HeaderNames.Cookie, CookieHeaderValueListParser.Instance); 60public static HeaderSetup<DateTimeOffset> Date => new(HeaderNames.Date, DateTimeOffsetParser.Instance); 65public static HeaderSetup<IReadOnlyList<EntityTagHeaderValue>> IfMatch => new(HeaderNames.IfMatch, EntityTagHeaderValueListParser.Instance); 70public static HeaderSetup<IReadOnlyList<EntityTagHeaderValue>> IfModifiedSince => new(HeaderNames.IfModifiedSince, EntityTagHeaderValueListParser.Instance); 75public static HeaderSetup<IReadOnlyList<EntityTagHeaderValue>> IfNoneMatch => new(HeaderNames.IfNoneMatch, EntityTagHeaderValueListParser.Instance); 80public static HeaderSetup<RangeConditionHeaderValue> IfRange => new(HeaderNames.IfRange, RangeConditionHeaderValueParser.Instance); 85public static HeaderSetup<DateTimeOffset> IfUnmodifiedSince => new(HeaderNames.IfUnmodifiedSince, DateTimeOffsetParser.Instance); 90public static HeaderSetup<RangeHeaderValue> Range => new(HeaderNames.Range, RangeHeaderValueParser.Instance); 95public static HeaderSetup<Uri> Referer => new(HeaderNames.Referer, Parsers.UriParser.Instance, cacheable: true);
Microsoft.AspNetCore.HeaderParsing.Tests (18)
CommonHeadersTests.cs (16)
15Assert.Equal(HeaderNames.Host, CommonHeaders.Host.HeaderName); 23Assert.Equal(HeaderNames.Accept, CommonHeaders.Accept.HeaderName); 31Assert.Equal(HeaderNames.AcceptEncoding, CommonHeaders.AcceptEncoding.HeaderName); 39Assert.Equal(HeaderNames.AcceptLanguage, CommonHeaders.AcceptLanguage.HeaderName); 47Assert.Equal(HeaderNames.CacheControl, CommonHeaders.CacheControl.HeaderName); 55Assert.Equal(HeaderNames.ContentDisposition, CommonHeaders.ContentDisposition.HeaderName); 63Assert.Equal(HeaderNames.ContentType, CommonHeaders.ContentType.HeaderName); 71Assert.Equal(HeaderNames.Cookie, CommonHeaders.Cookie.HeaderName); 79Assert.Equal(HeaderNames.Date, CommonHeaders.Date.HeaderName); 87Assert.Equal(HeaderNames.IfMatch, CommonHeaders.IfMatch.HeaderName); 95Assert.Equal(HeaderNames.IfModifiedSince, CommonHeaders.IfModifiedSince.HeaderName); 103Assert.Equal(HeaderNames.IfNoneMatch, CommonHeaders.IfNoneMatch.HeaderName); 111Assert.Equal(HeaderNames.IfRange, CommonHeaders.IfRange.HeaderName); 119Assert.Equal(HeaderNames.IfUnmodifiedSince, CommonHeaders.IfUnmodifiedSince.HeaderName); 127Assert.Equal(HeaderNames.Range, CommonHeaders.Range.HeaderName); 135Assert.Equal(HeaderNames.Referer, CommonHeaders.Referer.HeaderName);
HeaderParsingFeatureTests.cs (2)
196Context.Request.Headers[HeaderNames.CacheControl] = "max-age=604800"; 211latest.Tags["aspnetcore.header_parsing.header.name"].Should().Be(HeaderNames.CacheControl);
Microsoft.AspNetCore.HostFiltering.Tests (3)
HostFilteringMiddlewareTests.cs (3)
59ctx.Request.Headers.Remove(HeaderNames.Host); 65Assert.False(c.Request.Headers.TryGetValue(HeaderNames.Host, out var host)); 106Assert.True(c.Request.Headers.TryGetValue(HeaderNames.Host, out var host));
Microsoft.AspNetCore.Http (4)
HeaderDictionary.cs (3)
124var rawValue = this[HeaderNames.ContentLength]; 139this[HeaderNames.ContentLength] = HeaderUtilities.FormatNonNegativeInt64(value.GetValueOrDefault()); 143this.Remove(HeaderNames.ContentLength);
Internal\DefaultWebSocketManager.cs (1)
57return HttpRequestFeature.Headers.GetCommaSeparatedValues(HeaderNames.WebSocketSubProtocols);
Microsoft.AspNetCore.Http.Abstractions (2)
Extensions\RequestTrailerExtensions.cs (1)
22return request.Headers.GetCommaSeparatedValues(HeaderNames.Trailer);
Extensions\ResponseTrailerExtensions.cs (1)
23response.Headers.AppendCommaSeparatedValues(HeaderNames.Trailer, trailerName);
Microsoft.AspNetCore.Http.Connections.Tests (1)
WebSocketsTests.cs (1)
374context.Request.Headers.Add(HeaderNames.WebSocketSubProtocols, providedSubProtocols.ToArray());
Microsoft.AspNetCore.Http.Extensions (48)
RequestHeaders.cs (30)
42Headers.SetList(HeaderNames.Accept, value); 57Headers.SetList(HeaderNames.AcceptCharset, value); 72Headers.SetList(HeaderNames.AcceptEncoding, value); 87Headers.SetList(HeaderNames.AcceptLanguage, value); 98return Headers.Get<CacheControlHeaderValue>(HeaderNames.CacheControl); 102Headers.Set(HeaderNames.CacheControl, value); 113return Headers.Get<ContentDispositionHeaderValue>(HeaderNames.ContentDisposition); 117Headers.Set(HeaderNames.ContentDisposition, value); 143return Headers.Get<ContentRangeHeaderValue>(HeaderNames.ContentRange); 147Headers.Set(HeaderNames.ContentRange, value); 158return Headers.Get<MediaTypeHeaderValue>(HeaderNames.ContentType); 162Headers.Set(HeaderNames.ContentType, value); 177Headers.SetList(HeaderNames.Cookie, value); 188return Headers.GetDate(HeaderNames.Date); 192Headers.SetDate(HeaderNames.Date, value); 203return Headers.GetDate(HeaderNames.Expires); 207Headers.SetDate(HeaderNames.Expires, value); 237Headers.SetList(HeaderNames.IfMatch, value); 248return Headers.GetDate(HeaderNames.IfModifiedSince); 252Headers.SetDate(HeaderNames.IfModifiedSince, value); 267Headers.SetList(HeaderNames.IfNoneMatch, value); 278return Headers.Get<RangeConditionHeaderValue>(HeaderNames.IfRange); 282Headers.Set(HeaderNames.IfRange, value); 293return Headers.GetDate(HeaderNames.IfUnmodifiedSince); 297Headers.SetDate(HeaderNames.IfUnmodifiedSince, value); 308return Headers.GetDate(HeaderNames.LastModified); 312Headers.SetDate(HeaderNames.LastModified, value); 323return Headers.Get<RangeHeaderValue>(HeaderNames.Range); 327Headers.Set(HeaderNames.Range, value); 346Headers.Set(HeaderNames.Referer, value == null ? null : UriHelper.Encode(value));
ResponseHeaders.cs (18)
38return Headers.Get<CacheControlHeaderValue>(HeaderNames.CacheControl); 42Headers.Set(HeaderNames.CacheControl, value); 53return Headers.Get<ContentDispositionHeaderValue>(HeaderNames.ContentDisposition); 57Headers.Set(HeaderNames.ContentDisposition, value); 83return Headers.Get<ContentRangeHeaderValue>(HeaderNames.ContentRange); 87Headers.Set(HeaderNames.ContentRange, value); 98return Headers.Get<MediaTypeHeaderValue>(HeaderNames.ContentType); 102Headers.Set(HeaderNames.ContentType, value); 113return Headers.GetDate(HeaderNames.Date); 117Headers.SetDate(HeaderNames.Date, value); 128return Headers.Get<EntityTagHeaderValue>(HeaderNames.ETag); 132Headers.Set(HeaderNames.ETag, value); 143return Headers.GetDate(HeaderNames.Expires); 147Headers.SetDate(HeaderNames.Expires, value); 158return Headers.GetDate(HeaderNames.LastModified); 162Headers.SetDate(HeaderNames.LastModified, value); 181Headers.Set(HeaderNames.Location, value == null ? null : UriHelper.Encode(value)); 196Headers.SetList(HeaderNames.SetCookie, value);
Microsoft.AspNetCore.Http.Extensions.Tests (17)
HeaderDictionaryTypeExtensionsTest.cs (17)
16var result = context.Request.GetTypedHeaders().Get<MediaTypeHeaderValue>(HeaderNames.ContentType); 27var result = context.Request.GetTypedHeaders().Get<MediaTypeHeaderValue>(HeaderNames.ContentType); 38var result = context.Request.GetTypedHeaders().Get<MediaTypeHeaderValue>(HeaderNames.ContentType); 49var result = context.Request.GetTypedHeaders().Get<CacheControlHeaderValue>(HeaderNames.CacheControl); 61var result = context.Request.GetTypedHeaders().Get<ContentDispositionHeaderValue>(HeaderNames.ContentDisposition); 73var result = context.Request.GetTypedHeaders().Get<RangeConditionHeaderValue>(HeaderNames.IfRange); 85var result = context.Request.GetTypedHeaders().Get<RangeHeaderValue>(HeaderNames.Range); 97var result = context.Request.GetTypedHeaders().Get<EntityTagHeaderValue>(HeaderNames.ETag); 110var result = context.Request.GetTypedHeaders().Get<DateTimeOffset?>(HeaderNames.ETag); 121var result = context.Request.GetTypedHeaders().Get<long?>(HeaderNames.ETag); 170var result = context.Request.GetTypedHeaders().GetList<MediaTypeHeaderValue>(HeaderNames.Accept); 185var result = context.Request.GetTypedHeaders().GetList<MediaTypeHeaderValue>(HeaderNames.Accept); 196var result = context.Request.GetTypedHeaders().GetList<MediaTypeHeaderValue>(HeaderNames.Accept); 207var result = context.Request.GetTypedHeaders().GetList<StringWithQualityHeaderValue>(HeaderNames.Accept); 219var result = context.Request.GetTypedHeaders().GetList<CookieHeaderValue>(HeaderNames.Cookie); 231var result = context.Request.GetTypedHeaders().GetList<EntityTagHeaderValue>(HeaderNames.ETag); 243var result = context.Request.GetTypedHeaders().GetList<SetCookieHeaderValue>(HeaderNames.SetCookie);
Microsoft.AspNetCore.Http.Features (178)
IHeaderDictionary.Keyed.cs (178)
11StringValues Accept { get => this[HeaderNames.Accept]; set => this[HeaderNames.Accept] = value; } 14StringValues AcceptCharset { get => this[HeaderNames.AcceptCharset]; set => this[HeaderNames.AcceptCharset] = value; } 17StringValues AcceptEncoding { get => this[HeaderNames.AcceptEncoding]; set => this[HeaderNames.AcceptEncoding] = value; } 20StringValues AcceptLanguage { get => this[HeaderNames.AcceptLanguage]; set => this[HeaderNames.AcceptLanguage] = value; } 23StringValues AcceptRanges { get => this[HeaderNames.AcceptRanges]; set => this[HeaderNames.AcceptRanges] = value; } 26StringValues AccessControlAllowCredentials { get => this[HeaderNames.AccessControlAllowCredentials]; set => this[HeaderNames.AccessControlAllowCredentials] = value; } 29StringValues AccessControlAllowHeaders { get => this[HeaderNames.AccessControlAllowHeaders]; set => this[HeaderNames.AccessControlAllowHeaders] = value; } 32StringValues AccessControlAllowMethods { get => this[HeaderNames.AccessControlAllowMethods]; set => this[HeaderNames.AccessControlAllowMethods] = value; } 35StringValues AccessControlAllowOrigin { get => this[HeaderNames.AccessControlAllowOrigin]; set => this[HeaderNames.AccessControlAllowOrigin] = value; } 38StringValues AccessControlExposeHeaders { get => this[HeaderNames.AccessControlExposeHeaders]; set => this[HeaderNames.AccessControlExposeHeaders] = value; } 41StringValues AccessControlMaxAge { get => this[HeaderNames.AccessControlMaxAge]; set => this[HeaderNames.AccessControlMaxAge] = value; } 44StringValues AccessControlRequestHeaders { get => this[HeaderNames.AccessControlRequestHeaders]; set => this[HeaderNames.AccessControlRequestHeaders] = value; } 47StringValues AccessControlRequestMethod { get => this[HeaderNames.AccessControlRequestMethod]; set => this[HeaderNames.AccessControlRequestMethod] = value; } 50StringValues Age { get => this[HeaderNames.Age]; set => this[HeaderNames.Age] = value; } 53StringValues Allow { get => this[HeaderNames.Allow]; set => this[HeaderNames.Allow] = value; } 56StringValues AltSvc { get => this[HeaderNames.AltSvc]; set => this[HeaderNames.AltSvc] = value; } 59StringValues Authorization { get => this[HeaderNames.Authorization]; set => this[HeaderNames.Authorization] = value; } 62StringValues Baggage { get => this[HeaderNames.Baggage]; set => this[HeaderNames.Baggage] = value; } 65StringValues CacheControl { get => this[HeaderNames.CacheControl]; set => this[HeaderNames.CacheControl] = value; } 68StringValues Connection { get => this[HeaderNames.Connection]; set => this[HeaderNames.Connection] = value; } 71StringValues ContentDisposition { get => this[HeaderNames.ContentDisposition]; set => this[HeaderNames.ContentDisposition] = value; } 74StringValues ContentEncoding { get => this[HeaderNames.ContentEncoding]; set => this[HeaderNames.ContentEncoding] = value; } 77StringValues ContentLanguage { get => this[HeaderNames.ContentLanguage]; set => this[HeaderNames.ContentLanguage] = value; } 80StringValues ContentLocation { get => this[HeaderNames.ContentLocation]; set => this[HeaderNames.ContentLocation] = value; } 83StringValues ContentMD5 { get => this[HeaderNames.ContentMD5]; set => this[HeaderNames.ContentMD5] = value; } 86StringValues ContentRange { get => this[HeaderNames.ContentRange]; set => this[HeaderNames.ContentRange] = value; } 89StringValues ContentSecurityPolicy { get => this[HeaderNames.ContentSecurityPolicy]; set => this[HeaderNames.ContentSecurityPolicy] = value; } 92StringValues ContentSecurityPolicyReportOnly { get => this[HeaderNames.ContentSecurityPolicyReportOnly]; set => this[HeaderNames.ContentSecurityPolicyReportOnly] = value; } 95StringValues ContentType { get => this[HeaderNames.ContentType]; set => this[HeaderNames.ContentType] = value; } 98StringValues CorrelationContext { get => this[HeaderNames.CorrelationContext]; set => this[HeaderNames.CorrelationContext] = value; } 101StringValues Cookie { get => this[HeaderNames.Cookie]; set => this[HeaderNames.Cookie] = value; } 104StringValues Date { get => this[HeaderNames.Date]; set => this[HeaderNames.Date] = value; } 107StringValues ETag { get => this[HeaderNames.ETag]; set => this[HeaderNames.ETag] = value; } 110StringValues Expires { get => this[HeaderNames.Expires]; set => this[HeaderNames.Expires] = value; } 113StringValues Expect { get => this[HeaderNames.Expect]; set => this[HeaderNames.Expect] = value; } 116StringValues From { get => this[HeaderNames.From]; set => this[HeaderNames.From] = value; } 119StringValues GrpcAcceptEncoding { get => this[HeaderNames.GrpcAcceptEncoding]; set => this[HeaderNames.GrpcAcceptEncoding] = value; } 122StringValues GrpcEncoding { get => this[HeaderNames.GrpcEncoding]; set => this[HeaderNames.GrpcEncoding] = value; } 125StringValues GrpcMessage { get => this[HeaderNames.GrpcMessage]; set => this[HeaderNames.GrpcMessage] = value; } 128StringValues GrpcStatus { get => this[HeaderNames.GrpcStatus]; set => this[HeaderNames.GrpcStatus] = value; } 131StringValues GrpcTimeout { get => this[HeaderNames.GrpcTimeout]; set => this[HeaderNames.GrpcTimeout] = value; } 134StringValues Host { get => this[HeaderNames.Host]; set => this[HeaderNames.Host] = value; } 137StringValues KeepAlive { get => this[HeaderNames.KeepAlive]; set => this[HeaderNames.KeepAlive] = value; } 140StringValues IfMatch { get => this[HeaderNames.IfMatch]; set => this[HeaderNames.IfMatch] = value; } 143StringValues IfModifiedSince { get => this[HeaderNames.IfModifiedSince]; set => this[HeaderNames.IfModifiedSince] = value; } 146StringValues IfNoneMatch { get => this[HeaderNames.IfNoneMatch]; set => this[HeaderNames.IfNoneMatch] = value; } 149StringValues IfRange { get => this[HeaderNames.IfRange]; set => this[HeaderNames.IfRange] = value; } 152StringValues IfUnmodifiedSince { get => this[HeaderNames.IfUnmodifiedSince]; set => this[HeaderNames.IfUnmodifiedSince] = value; } 155StringValues LastModified { get => this[HeaderNames.LastModified]; set => this[HeaderNames.LastModified] = value; } 158StringValues Link { get => this[HeaderNames.Link]; set => this[HeaderNames.Link] = value; } 161StringValues Location { get => this[HeaderNames.Location]; set => this[HeaderNames.Location] = value; } 164StringValues MaxForwards { get => this[HeaderNames.MaxForwards]; set => this[HeaderNames.MaxForwards] = value; } 167StringValues Origin { get => this[HeaderNames.Origin]; set => this[HeaderNames.Origin] = value; } 170StringValues Pragma { get => this[HeaderNames.Pragma]; set => this[HeaderNames.Pragma] = value; } 173StringValues ProxyAuthenticate { get => this[HeaderNames.ProxyAuthenticate]; set => this[HeaderNames.ProxyAuthenticate] = value; } 176StringValues ProxyAuthorization { get => this[HeaderNames.ProxyAuthorization]; set => this[HeaderNames.ProxyAuthorization] = value; } 179StringValues ProxyConnection { get => this[HeaderNames.ProxyConnection]; set => this[HeaderNames.ProxyConnection] = value; } 182StringValues Range { get => this[HeaderNames.Range]; set => this[HeaderNames.Range] = value; } 185StringValues Referer { get => this[HeaderNames.Referer]; set => this[HeaderNames.Referer] = value; } 188StringValues RetryAfter { get => this[HeaderNames.RetryAfter]; set => this[HeaderNames.RetryAfter] = value; } 191StringValues RequestId { get => this[HeaderNames.RequestId]; set => this[HeaderNames.RequestId] = value; } 194StringValues SecWebSocketAccept { get => this[HeaderNames.SecWebSocketAccept]; set => this[HeaderNames.SecWebSocketAccept] = value; } 197StringValues SecWebSocketKey { get => this[HeaderNames.SecWebSocketKey]; set => this[HeaderNames.SecWebSocketKey] = value; } 200StringValues SecWebSocketProtocol { get => this[HeaderNames.SecWebSocketProtocol]; set => this[HeaderNames.SecWebSocketProtocol] = value; } 203StringValues SecWebSocketVersion { get => this[HeaderNames.SecWebSocketVersion]; set => this[HeaderNames.SecWebSocketVersion] = value; } 206StringValues SecWebSocketExtensions { get => this[HeaderNames.SecWebSocketExtensions]; set => this[HeaderNames.SecWebSocketExtensions] = value; } 209StringValues Server { get => this[HeaderNames.Server]; set => this[HeaderNames.Server] = value; } 212StringValues SetCookie { get => this[HeaderNames.SetCookie]; set => this[HeaderNames.SetCookie] = value; } 215StringValues StrictTransportSecurity { get => this[HeaderNames.StrictTransportSecurity]; set => this[HeaderNames.StrictTransportSecurity] = value; } 218StringValues TE { get => this[HeaderNames.TE]; set => this[HeaderNames.TE] = value; } 221StringValues Trailer { get => this[HeaderNames.Trailer]; set => this[HeaderNames.Trailer] = value; } 224StringValues TransferEncoding { get => this[HeaderNames.TransferEncoding]; set => this[HeaderNames.TransferEncoding] = value; } 227StringValues Translate { get => this[HeaderNames.Translate]; set => this[HeaderNames.Translate] = value; } 230StringValues TraceParent { get => this[HeaderNames.TraceParent]; set => this[HeaderNames.TraceParent] = value; } 233StringValues TraceState { get => this[HeaderNames.TraceState]; set => this[HeaderNames.TraceState] = value; } 236StringValues Upgrade { get => this[HeaderNames.Upgrade]; set => this[HeaderNames.Upgrade] = value; } 239StringValues UpgradeInsecureRequests { get => this[HeaderNames.UpgradeInsecureRequests]; set => this[HeaderNames.UpgradeInsecureRequests] = value; } 242StringValues UserAgent { get => this[HeaderNames.UserAgent]; set => this[HeaderNames.UserAgent] = value; } 245StringValues Vary { get => this[HeaderNames.Vary]; set => this[HeaderNames.Vary] = value; } 248StringValues Via { get => this[HeaderNames.Via]; set => this[HeaderNames.Via] = value; } 251StringValues Warning { get => this[HeaderNames.Warning]; set => this[HeaderNames.Warning] = value; } 254StringValues WebSocketSubProtocols { get => this[HeaderNames.WebSocketSubProtocols]; set => this[HeaderNames.WebSocketSubProtocols] = value; } 257StringValues WWWAuthenticate { get => this[HeaderNames.WWWAuthenticate]; set => this[HeaderNames.WWWAuthenticate] = value; } 260StringValues XContentTypeOptions { get => this[HeaderNames.XContentTypeOptions]; set => this[HeaderNames.XContentTypeOptions] = value; } 263StringValues XFrameOptions { get => this[HeaderNames.XFrameOptions]; set => this[HeaderNames.XFrameOptions] = value; } 266StringValues XPoweredBy { get => this[HeaderNames.XPoweredBy]; set => this[HeaderNames.XPoweredBy] = value; } 269StringValues XRequestedWith { get => this[HeaderNames.XRequestedWith]; set => this[HeaderNames.XRequestedWith] = value; } 272StringValues XUACompatible { get => this[HeaderNames.XUACompatible]; set => this[HeaderNames.XUACompatible] = value; } 275StringValues XXSSProtection { get => this[HeaderNames.XXSSProtection]; set => this[HeaderNames.XXSSProtection] = value; }
Microsoft.AspNetCore.Http.Results.Tests (4)
src\Shared\ResultsTests\FileContentResultTestBase.cs (1)
327Assert.False(httpResponse.Headers.ContainsKey(HeaderNames.ContentType));
src\Shared\ResultsTests\FileStreamResultTestBase.cs (1)
322Assert.False(httpResponse.Headers.ContainsKey(HeaderNames.ContentType));
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (1)
262Assert.False(httpResponse.Headers.ContainsKey(HeaderNames.ContentType));
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (1)
312Assert.False(httpResponse.Headers.ContainsKey(HeaderNames.ContentType));
Microsoft.AspNetCore.HttpLogging (53)
HttpLoggingOptions.cs (45)
34HeaderNames.Accept, 35HeaderNames.AcceptCharset, 36HeaderNames.AcceptEncoding, 37HeaderNames.AcceptLanguage, 38HeaderNames.Allow, 39HeaderNames.CacheControl, 40HeaderNames.Connection, 41HeaderNames.ContentEncoding, 42HeaderNames.ContentLength, 43HeaderNames.ContentType, 44HeaderNames.Date, 45HeaderNames.DNT, 46HeaderNames.Expect, 47HeaderNames.Host, 48HeaderNames.MaxForwards, 49HeaderNames.Range, 50HeaderNames.SecWebSocketExtensions, 51HeaderNames.SecWebSocketVersion, 52HeaderNames.TE, 53HeaderNames.Trailer, 54HeaderNames.TransferEncoding, 55HeaderNames.Upgrade, 56HeaderNames.UserAgent, 57HeaderNames.Warning, 58HeaderNames.XRequestedWith, 59HeaderNames.XUACompatible 73HeaderNames.AcceptRanges, 74HeaderNames.Age, 75HeaderNames.Allow, 76HeaderNames.AltSvc, 77HeaderNames.Connection, 78HeaderNames.ContentDisposition, 79HeaderNames.ContentLanguage, 80HeaderNames.ContentLength, 81HeaderNames.ContentLocation, 82HeaderNames.ContentRange, 83HeaderNames.ContentType, 84HeaderNames.Date, 85HeaderNames.Expires, 86HeaderNames.LastModified, 87HeaderNames.Location, 88HeaderNames.Server, 89HeaderNames.TransferEncoding, 90HeaderNames.Upgrade, 91HeaderNames.XPoweredBy
W3CLoggerOptions.cs (4)
132clonedSet.Remove(HeaderNames.Host); 136clonedSet.Remove(HeaderNames.Referer); 140clonedSet.Remove(HeaderNames.UserAgent); 144clonedSet.Remove(HeaderNames.Cookie);
W3CLoggingMiddleware.cs (4)
146if (request.Headers.TryGetValue(HeaderNames.Host, out var host)) 154if (request.Headers.TryGetValue(HeaderNames.Referer, out var referer)) 162if (request.Headers.TryGetValue(HeaderNames.UserAgent, out var agent)) 172if (request.Headers.TryGetValue(HeaderNames.Cookie, out var cookie))
Microsoft.AspNetCore.HttpLogging.Tests (22)
HttpLoggingMiddlewareTests.cs (22)
820c.Response.Headers[HeaderNames.TransferEncoding] = "test"; 843c.Response.Headers[HeaderNames.TransferEncoding] = "test"; 867c.Response.Headers[HeaderNames.TransferEncoding] = "test"; 889c.Response.Headers[HeaderNames.TransferEncoding] = "test"; 913c.Response.Headers[HeaderNames.TransferEncoding] = "test"; 963c.Response.Headers[HeaderNames.TransferEncoding] = "test"; 1097c.Response.Headers[HeaderNames.TransferEncoding] = "test"; 1135c.Response.Headers[HeaderNames.TransferEncoding] = "test"; 1187httpContext.Request.Headers.Remove(HeaderNames.ContentType); 1212httpContext.Response.Headers[HeaderNames.Connection] = HeaderNames.Upgrade; 1252httpContext.Request.Headers.Connection = HeaderNames.Upgrade; 1262httpContext.Response.Headers.Connection = HeaderNames.Upgrade; 1316httpContext.Response.Headers[HeaderNames.Connection] = HeaderNames.Upgrade; 1359httpContext.Response.Headers[HeaderNames.Connection] = HeaderNames.Upgrade; 1403c.Response.Headers[HeaderNames.TransferEncoding] = "test"; 1437httpContext.Response.Headers[HeaderNames.Connection] = HeaderNames.Upgrade; 1511c.Response.Headers[HeaderNames.TransferEncoding] = "test"; 1580c.Response.Headers[HeaderNames.TransferEncoding] = "test";
Microsoft.AspNetCore.HttpsPolicy.Tests (5)
HstsMiddlewareTests.cs (4)
71Assert.Equal("max-age=2592000", response.Headers.GetValues(HeaderNames.StrictTransportSecurity).FirstOrDefault()); 117Assert.Equal(expected, response.Headers.GetValues(HeaderNames.StrictTransportSecurity).FirstOrDefault()); 163Assert.Equal(expected, response.Headers.GetValues(HeaderNames.StrictTransportSecurity).FirstOrDefault()); 411Assert.Contains(response.Headers, x => x.Key == HeaderNames.StrictTransportSecurity);
HttpsPolicyTests.cs (1)
77Assert.Equal(expectedHstsHeader, response.Headers.GetValues(HeaderNames.StrictTransportSecurity).FirstOrDefault());
Microsoft.AspNetCore.Identity.FunctionalTests (7)
MapIdentityApiTests.cs (7)
113Assert.False(loginResponse.Headers.Contains(HeaderNames.SetCookie)); 214Assert.True(loginResponse.Headers.TryGetValues(HeaderNames.SetCookie, out var setCookieHeaders)); 223client.DefaultRequestHeaders.Add(HeaderNames.Cookie, cookie); 1148Assert.False(infoPostResponse.Headers.Contains(HeaderNames.SetCookie)); 1169Assert.False(emailConfirmationResponse.Headers.Contains(HeaderNames.SetCookie)); 1470Assert.True(response.Headers.TryGetValues(HeaderNames.SetCookie, out var setCookieHeaders)); 1481client.DefaultRequestHeaders.Add(HeaderNames.Cookie, cookie);
Microsoft.AspNetCore.Identity.InMemory.Test (1)
FunctionalTest.cs (1)
437request.Headers.Add(HeaderNames.XRequestedWith, "XMLHttpRequest");
Microsoft.AspNetCore.Mvc.Core (4)
Filters\ResponseCacheFilterExecutor.cs (4)
72headers.Remove(HeaderNames.Vary); 73headers.Remove(HeaderNames.CacheControl); 74headers.Remove(HeaderNames.Pragma); 99headers.AppendCommaSeparatedValues(HeaderNames.CacheControl, "no-cache");
Microsoft.AspNetCore.Mvc.Core.Test (4)
src\Shared\ResultsTests\FileContentResultTestBase.cs (1)
327Assert.False(httpResponse.Headers.ContainsKey(HeaderNames.ContentType));
src\Shared\ResultsTests\FileStreamResultTestBase.cs (1)
322Assert.False(httpResponse.Headers.ContainsKey(HeaderNames.ContentType));
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (1)
262Assert.False(httpResponse.Headers.ContainsKey(HeaderNames.ContentType));
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (1)
312Assert.False(httpResponse.Headers.ContainsKey(HeaderNames.ContentType));
Microsoft.AspNetCore.Mvc.FunctionalTests (9)
RequestServicesTestBase.cs (4)
54request.Headers.TryAddWithoutValidation(HeaderNames.RequestId, requestId); 77request.Headers.TryAddWithoutValidation(HeaderNames.RequestId, requestId); 97request1.Headers.TryAddWithoutValidation(HeaderNames.RequestId, requestId1); 106request2.Headers.TryAddWithoutValidation(HeaderNames.RequestId, requestId2);
TempDataInCookiesTest.cs (5)
69Assert.True(response.Headers.TryGetValues(HeaderNames.SetCookie, out IEnumerable<string> setCookieValues)); 95Assert.True(response.Headers.TryGetValues(HeaderNames.SetCookie, out setCookieValues)); 128Assert.True(response.Headers.TryGetValues(HeaderNames.SetCookie, out IEnumerable<string> setCookieValues)); 151Assert.True(response.Headers.TryGetValues(HeaderNames.SetCookie, out setCookieValues)); 181Assert.True(response.Headers.TryGetValues(HeaderNames.SetCookie, out IEnumerable<string> setCookieValues));
Microsoft.AspNetCore.Mvc.Testing (3)
Handlers\CookieContainerHandler.cs (2)
47request.Headers.Add(HeaderNames.Cookie, cookieHeader); 52if (response.Headers.TryGetValues(HeaderNames.SetCookie, out var setCookieHeaders))
Handlers\RedirectHandler.cs (1)
104if (!header.Key.Equals(HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.OpenApi (3)
Services\OpenApiDocumentService.cs (3)
53private static readonly FrozenSet<string> _disallowedHeaderParameters = new[] { HeaderNames.Accept, HeaderNames.Authorization, HeaderNames.ContentType }.ToFrozenSet(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.OutputCaching (82)
OutputCacheEntry.cs (1)
114if (!TryFindHeader(HeaderNames.TransferEncoding, out _))
OutputCacheEntryFormatter.cs (78)
397HeaderNames.Accept, 398HeaderNames.AcceptCharset, 399HeaderNames.AcceptEncoding, 400HeaderNames.AcceptLanguage, 401HeaderNames.AcceptRanges, 402HeaderNames.AccessControlAllowCredentials, 403HeaderNames.AccessControlAllowHeaders, 404HeaderNames.AccessControlAllowMethods, 405HeaderNames.AccessControlAllowOrigin, 406HeaderNames.AccessControlExposeHeaders, 407HeaderNames.AccessControlMaxAge, 408HeaderNames.AccessControlRequestHeaders, 409HeaderNames.AccessControlRequestMethod, 410HeaderNames.Age, 411HeaderNames.Allow, 412HeaderNames.AltSvc, 413HeaderNames.Authorization, 414HeaderNames.Baggage, 415HeaderNames.CacheControl, 416HeaderNames.Connection, 417HeaderNames.ContentDisposition, 418HeaderNames.ContentEncoding, 419HeaderNames.ContentLanguage, 420HeaderNames.ContentLength, 421HeaderNames.ContentLocation, 422HeaderNames.ContentMD5, 423HeaderNames.ContentRange, 424HeaderNames.ContentSecurityPolicy, 425HeaderNames.ContentSecurityPolicyReportOnly, 426HeaderNames.ContentType, 427HeaderNames.CorrelationContext, 428HeaderNames.Cookie, 429HeaderNames.Date, 430HeaderNames.DNT, 431HeaderNames.ETag, 432HeaderNames.Expires, 433HeaderNames.Expect, 434HeaderNames.From, 435HeaderNames.Host, 436HeaderNames.KeepAlive, 437HeaderNames.IfMatch, 438HeaderNames.IfModifiedSince, 439HeaderNames.IfNoneMatch, 440HeaderNames.IfRange, 441HeaderNames.IfUnmodifiedSince, 442HeaderNames.LastModified, 443HeaderNames.Link, 444HeaderNames.Location, 445HeaderNames.MaxForwards, 446HeaderNames.Origin, 447HeaderNames.Pragma, 448HeaderNames.ProxyAuthenticate, 449HeaderNames.ProxyAuthorization, 450HeaderNames.ProxyConnection, 451HeaderNames.Range, 452HeaderNames.Referer, 453HeaderNames.RequestId, 454HeaderNames.RetryAfter, 455HeaderNames.Server, 456HeaderNames.StrictTransportSecurity, 457HeaderNames.TE, 458HeaderNames.Trailer, 459HeaderNames.TransferEncoding, 460HeaderNames.Translate, 461HeaderNames.TraceParent, 462HeaderNames.TraceState, 463HeaderNames.Vary, 464HeaderNames.Via, 465HeaderNames.Warning, 466HeaderNames.XContentTypeOptions, 467HeaderNames.XFrameOptions, 468HeaderNames.XPoweredBy, 469HeaderNames.XRequestedWith, 470HeaderNames.XUACompatible, 471HeaderNames.XXSSProtection, 502HeaderNames.RequestId, HeaderNames.ContentLength, HeaderNames.Age
OutputCacheMiddleware.cs (3)
534if (cachedResponse.TryFindHeader(HeaderNames.ETag, out var raw) 555if (!HeaderUtilities.TryParseDate(cachedResponse.FindHeader(HeaderNames.LastModified).ToString(), out var modified) && 556!HeaderUtilities.TryParseDate(cachedResponse.FindHeader(HeaderNames.Date).ToString(), out modified))
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (2)
EndToEndBenchmarks.cs (2)
223if (header.Key == HeaderNames.ContentLength || header.Key == HeaderNames.RequestId)
Microsoft.AspNetCore.OutputCaching.Tests (22)
OutputCacheEntryFormatterTests.cs (6)
51.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.Accept] = new[] { "text/plain", "text/html" }, [HeaderNames.AcceptCharset] = "utf8" }) 70entry.CopyHeadersFrom(new HeaderDictionary { [""] = "", [HeaderNames.Accept] = new[] { null, null, "", "text/html" }, [HeaderNames.AcceptCharset] = new string[] { null } }); 84Assert.True(result.TryFindHeader(HeaderNames.Accept, out values)); 90Assert.True(result.TryFindHeader(HeaderNames.AcceptCharset, out values), "Find 'AcceptCharset'");
OutputCacheMiddlewareTests.cs (9)
183entry.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.Date] = HeaderUtilities.FormatDate(value) }); 223[HeaderNames.Date] = HeaderUtilities.FormatDate(date), 224[HeaderNames.LastModified] = HeaderUtilities.FormatDate(lastModified), 261entry.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.LastModified] = HeaderUtilities.FormatDate(utcNow + TimeSpan.FromSeconds(10)) }); 282context.CachedResponse.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.LastModified] = HeaderUtilities.FormatDate(utcNow - TimeSpan.FromSeconds(10)) }); 325.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.ETag] = responseETag.ToString() }); 343context.CachedResponse.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.ETag] = "\"E2\"" }); 358context.CachedResponse.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.ETag] = "\"E2\"" }); 599Assert.Equal(new StringValues(new[] { "HeaderB, heaDera" }), context.CachedResponse.FindHeader(HeaderNames.Vary));
OutputCacheTests.cs (7)
307var builders = TestUtils.CreateBuildersWithOutputCaching(contextAction: context => context.Response.Headers.Vary = HeaderNames.From); 329options.AddBasePolicy(b => b.SetVaryByHeader(HeaderNames.From).Build()); 699context.Response.Headers.Vary = HeaderNames.From; 748context.Response.Headers.Vary = HeaderNames.From; 865var builders = TestUtils.CreateBuildersWithOutputCaching(contextAction: context => context.Response.Headers.Vary = HeaderNames.From); 1058Assert.True(subsequentResponse.Headers.Contains(HeaderNames.Age)); 1067Assert.False(subsequentResponse.Headers.Contains(HeaderNames.Age));
Microsoft.AspNetCore.Owin (3)
DictionaryStringValuesWrapper.cs (3)
50if (!Inner.TryGetValue(HeaderNames.ContentLength, out rawValue)) 68Inner[HeaderNames.ContentLength] = (StringValues)HeaderUtilities.FormatNonNegativeInt64(value.GetValueOrDefault()); 72Inner.Remove(HeaderNames.ContentLength);
Microsoft.AspNetCore.RequestDecompression (1)
DefaultRequestDecompressionProvider.cs (1)
52context.Request.Headers.Remove(HeaderNames.ContentEncoding);
Microsoft.AspNetCore.RequestDecompression.Tests (3)
DefaultRequestDecompressionProviderTests.cs (3)
29httpContext.Request.Headers.Add(HeaderNames.ContentEncoding, contentEncoding); 82httpContext.Request.Headers.Add(HeaderNames.ContentEncoding, contentEncoding); 110httpContext.Request.Headers.Add(HeaderNames.ContentEncoding, contentEncodings);
Microsoft.AspNetCore.ResponseCaching (2)
ResponseCachingMiddleware.cs (2)
256var varyHeaders = new StringValues(headers.GetCommaSeparatedValues(HeaderNames.Vary)); 314if (!string.Equals(header.Key, HeaderNames.Age, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.ResponseCaching.Tests (37)
ResponseCachingMiddlewareTests.cs (14)
198context.CachedResponseHeaders[HeaderNames.Date] = HeaderUtilities.FormatDate(utcNow - TimeSpan.FromSeconds(10)); 203context.CachedResponseHeaders[HeaderNames.Date] = HeaderUtilities.FormatDate(utcNow); 208context.CachedResponseHeaders[HeaderNames.Date] = HeaderUtilities.FormatDate(utcNow + TimeSpan.FromSeconds(10)); 229context.CachedResponseHeaders[HeaderNames.Date] = HeaderUtilities.FormatDate(utcNow + TimeSpan.FromSeconds(10)); 230context.CachedResponseHeaders[HeaderNames.LastModified] = HeaderUtilities.FormatDate(utcNow - TimeSpan.FromSeconds(10)); 235context.CachedResponseHeaders[HeaderNames.Date] = HeaderUtilities.FormatDate(utcNow + TimeSpan.FromSeconds(10)); 236context.CachedResponseHeaders[HeaderNames.LastModified] = HeaderUtilities.FormatDate(utcNow); 241context.CachedResponseHeaders[HeaderNames.Date] = HeaderUtilities.FormatDate(utcNow - TimeSpan.FromSeconds(10)); 242context.CachedResponseHeaders[HeaderNames.LastModified] = HeaderUtilities.FormatDate(utcNow + TimeSpan.FromSeconds(10)); 262context.CachedResponseHeaders[HeaderNames.LastModified] = HeaderUtilities.FormatDate(utcNow + TimeSpan.FromSeconds(10)); 281context.CachedResponseHeaders[HeaderNames.LastModified] = HeaderUtilities.FormatDate(utcNow - TimeSpan.FromSeconds(10)); 321context.CachedResponseHeaders[HeaderNames.ETag] = responseETag.ToString(); 336context.CachedResponseHeaders[HeaderNames.ETag] = "\"E2\""; 349context.CachedResponseHeaders[HeaderNames.ETag] = "\"E2\"";
ResponseCachingPolicyProviderTests.cs (16)
508context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 526context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 530context.CachedResponseHeaders[HeaderNames.Expires] = HeaderUtilities.FormatDate(utcNow); 547context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 567context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 589context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 595context.CachedResponseHeaders[HeaderNames.Expires] = HeaderUtilities.FormatDate(utcNow); 610context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 616context.CachedResponseHeaders[HeaderNames.Expires] = HeaderUtilities.FormatDate(utcNow); 634context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 658context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 682context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 705context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 729context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 753context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue() 778context.CachedResponseHeaders[HeaderNames.CacheControl] = new CacheControlHeaderValue()
ResponseCachingTests.cs (7)
269var builders = TestUtils.CreateBuildersWithResponseCaching(contextAction: context => context.Response.Headers.Vary = HeaderNames.From); 292var builders = TestUtils.CreateBuildersWithResponseCaching(contextAction: context => context.Response.Headers.Vary = HeaderNames.From); 645context.Response.Headers.Vary = HeaderNames.From; 698context.Response.Headers.Vary = HeaderNames.From; 822var builders = TestUtils.CreateBuildersWithResponseCaching(contextAction: context => context.Response.Headers.Vary = HeaderNames.From); 962Assert.True(subsequentResponse.Headers.Contains(HeaderNames.Age)); 971Assert.False(subsequentResponse.Headers.Contains(HeaderNames.Age));
Microsoft.AspNetCore.ResponseCompression (7)
ResponseCompressionBody.cs (3)
208var varyValues = headers.GetCommaSeparatedValues(HeaderNames.Vary); 213if (string.Equals(varyValues[i], HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 224headers.Vary = StringValues.Concat(headers.Vary, HeaderNames.AcceptEncoding);
ResponseCompressionProvider.cs (4)
176if (context.Response.Headers.ContainsKey(HeaderNames.ContentRange)) 178_logger.NoCompressionDueToHeader(HeaderNames.ContentRange); 182if (context.Response.Headers.ContainsKey(HeaderNames.ContentEncoding)) 184_logger.NoCompressionDueToHeader(HeaderNames.ContentEncoding);
Microsoft.AspNetCore.ResponseCompression.Tests (13)
ResponseCompressionMiddlewareTest.cs (13)
755Assert.False(response.Content.Headers.TryGetValues(HeaderNames.ContentMD5, out _)); 808Assert.False(response.Content.Headers.TryGetValues(HeaderNames.ContentMD5, out _)); 877Assert.False(response.Content.Headers.TryGetValues(HeaderNames.ContentMD5, out _)); 941Assert.False(response.Content.Headers.TryGetValues(HeaderNames.ContentMD5, out _)); 1005Assert.True(response.Content.Headers.TryGetValues(HeaderNames.ContentMD5, out var md5)); 1217Assert.False(response.Content.Headers.TryGetValues(HeaderNames.ContentMD5, out _)); 1292foreach (var value in response.Headers.GetValues(HeaderNames.Vary)) 1294if (value.Contains(HeaderNames.AcceptEncoding)) 1301Assert.False(response.Content.Headers.TryGetValues(HeaderNames.ContentMD5, out _)); 1311foreach (var value in response.Headers.GetValues(HeaderNames.Vary)) 1313if (value.Contains(HeaderNames.AcceptEncoding)) 1323Assert.False(response.Headers.Contains(HeaderNames.Vary)); 1325Assert.NotNull(response.Content.Headers.GetValues(HeaderNames.ContentMD5));
Microsoft.AspNetCore.Rewrite (14)
ApacheModRewrite\ServerVariables.cs (6)
26return new HeaderSegment(HeaderNames.Accept); 28return new HeaderSegment(HeaderNames.Cookie); 30return new HeaderSegment(HeaderNames.Host); 32return new HeaderSegment(HeaderNames.Referer); 34return new HeaderSegment(HeaderNames.UserAgent); 36return new HeaderSegment(HeaderNames.Connection);
IISUrlRewrite\ServerVariables.cs (8)
34managedVariableThunk = () => new HeaderSegment(HeaderNames.ContentLength); 37managedVariableThunk = () => new HeaderSegment(HeaderNames.ContentType); 40managedVariableThunk = () => new HeaderSegment(HeaderNames.Accept); 43managedVariableThunk = () => new HeaderSegment(HeaderNames.Cookie); 46managedVariableThunk = () => new HeaderSegment(HeaderNames.Host); 49managedVariableThunk = () => new HeaderSegment(HeaderNames.Referer); 52managedVariableThunk = () => new HeaderSegment(HeaderNames.UserAgent); 55managedVariableThunk = () => new HeaderSegment(HeaderNames.Connection);
Microsoft.AspNetCore.Rewrite.Tests (2)
PatternSegments\HeaderSegmentTests.cs (2)
19var segment = new HeaderSegment(HeaderNames.Location); 33var segment = new HeaderSegment(HeaderNames.Location);
Microsoft.AspNetCore.Routing (4)
Matching\HttpMethodMatcherPolicy.cs (4)
119headers.ContainsKey(HeaderNames.Origin) && 120headers.TryGetValue(HeaderNames.AccessControlRequestMethod, out var accessControlRequestMethod) && 425headers.ContainsKey(HeaderNames.Origin) && 426headers.TryGetValue(HeaderNames.AccessControlRequestMethod, out accessControlRequestMethod) &&
Microsoft.AspNetCore.Routing.FunctionalTests (2)
EndpointRoutingIntegrationTest.cs (2)
308request.AddHeader(HeaderNames.Origin, "http://testlocation.com"); 309request.AddHeader(HeaderNames.AccessControlRequestMethod, HttpMethods.Put);
Microsoft.AspNetCore.Routing.Tests (2)
Matching\HttpMethodMatcherPolicyIntegrationTestBase.cs (2)
374httpContext.Request.Headers[HeaderNames.Origin] = "example.com"; 375httpContext.Request.Headers[HeaderNames.AccessControlRequestMethod] = httpMethod;
Microsoft.AspNetCore.Security.Microbenchmarks (2)
ChunkingCookieManagerBenchmark.cs (2)
55_httpContext.Response.Headers[HeaderNames.SetCookie] = StringValues.Empty; 62_httpContext.Response.Headers[HeaderNames.SetCookie] = StringValues.Empty;
Microsoft.AspNetCore.Server.HttpSys (374)
AuthenticationManager.cs (2)
185context.Response.Headers[HeaderNames.WWWAuthenticate] 186= StringValues.Concat(context.Response.Headers[HeaderNames.WWWAuthenticate], challenges.ToArray());
RequestProcessing\Request.cs (4)
214var transferEncoding = Headers[HeaderNames.TransferEncoding].ToString(); 221string? length = Headers[HeaderNames.ContentLength]; 500var transferEncoding = Headers[HeaderNames.TransferEncoding].ToString(); 520headerDictionary.Add("X-Content-Length", headerDictionary[HeaderNames.ContentLength]);
RequestProcessing\RequestContext.FeatureCollection.cs (6)
671var cacheControlHeader = response.Headers[HeaderNames.CacheControl]; 679if (response.Headers.ContainsKey(HeaderNames.SetCookie) 680|| response.Headers.ContainsKey(HeaderNames.Vary) 681|| response.Headers.ContainsKey(HeaderNames.Pragma)) 700if (HeaderUtilities.TryParseDate(response.Headers[HeaderNames.Expires].ToString(), out expirationDate)) 751Response.Headers[HeaderNames.Connection] = "close";
RequestProcessing\Response.cs (7)
156&& Headers.ContainsKey(HeaderNames.Trailer)); 391var requestConnectionString = Request.Headers[HeaderNames.Connection]; 398var responseConnectionString = Headers[HeaderNames.Connection]; 399var transferEncodingString = Headers[HeaderNames.TransferEncoding]; 443Headers[HeaderNames.ContentLength] = Constants.Zero; 451Headers[HeaderNames.TransferEncoding] = Constants.Chunked; 468Headers.Append(HeaderNames.Connection, Constants.Close);
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (30)
23HeaderNames.CacheControl, 24HeaderNames.Connection, 25HeaderNames.Date, 26HeaderNames.KeepAlive, 27HeaderNames.Pragma, 28HeaderNames.Trailer, 29HeaderNames.TransferEncoding, 30HeaderNames.Upgrade, 31HeaderNames.Via, 32HeaderNames.Warning, 34HeaderNames.Allow, 35HeaderNames.ContentLength, 36HeaderNames.ContentType, 37HeaderNames.ContentEncoding, 38HeaderNames.ContentLanguage, 39HeaderNames.ContentLocation, 40HeaderNames.ContentMD5, 41HeaderNames.ContentRange, 42HeaderNames.Expires, 43HeaderNames.LastModified, 45HeaderNames.AcceptRanges, 46HeaderNames.Age, 47HeaderNames.ETag, 48HeaderNames.Location, 49HeaderNames.ProxyAuthenticate, 50HeaderNames.RetryAfter, 51HeaderNames.Server, 52HeaderNames.SetCookie, 53HeaderNames.Vary, 54HeaderNames.WWWAuthenticate,
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (35)
22HeaderNames.TransferEncoding, HeaderNames.ContentLength, 25HeaderNames.Host, 29HeaderNames.CacheControl, HeaderNames.Expect, HeaderNames.MaxForwards, HeaderNames.Pragma, HeaderNames.Range, HeaderNames.TE, 32HeaderNames.IfMatch, HeaderNames.IfNoneMatch, HeaderNames.IfModifiedSince, HeaderNames.IfUnmodifiedSince, HeaderNames.IfRange, 35HeaderNames.WWWAuthenticate, HeaderNames.Authorization, HeaderNames.ProxyAuthenticate, HeaderNames.ProxyAuthorization, HeaderNames.SetCookie, HeaderNames.Cookie, 39HeaderNames.Age, HeaderNames.Expires, HeaderNames.Date, HeaderNames.Location, HeaderNames.RetryAfter, HeaderNames.Vary, HeaderNames.Warning, 42HeaderNames.ContentEncoding, HeaderNames.ContentType, HeaderNames.ContentRange, HeaderNames.Trailer 123var rawValue = this[HeaderNames.ContentLength]; 143ValidateRestrictedTrailers(HeaderNames.ContentLength); 153this[HeaderNames.ContentLength] = _contentLengthText; 158Remove(HeaderNames.ContentLength);
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (3)
179var rawValue = this[HeaderNames.ContentLength]; 208this[HeaderNames.ContentLength] = _contentLengthText; 213Remove(HeaderNames.ContentLength);
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (287)
1051if (string.Equals(key, HeaderNames.TE, StringComparison.OrdinalIgnoreCase)) 1057if (string.Equals(key, HeaderNames.Via, StringComparison.OrdinalIgnoreCase)) 1063if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1067if (string.Equals(key, HeaderNames.From, StringComparison.OrdinalIgnoreCase)) 1071if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1077if (string.Equals(key, HeaderNames.Allow, StringComparison.OrdinalIgnoreCase)) 1081if (string.Equals(key, HeaderNames.Range, StringComparison.OrdinalIgnoreCase)) 1087if (string.Equals(key, HeaderNames.Accept, StringComparison.OrdinalIgnoreCase)) 1091if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1095if (string.Equals(key, HeaderNames.Expect, StringComparison.OrdinalIgnoreCase)) 1099if (string.Equals(key, HeaderNames.Pragma, StringComparison.OrdinalIgnoreCase)) 1105if (string.Equals(key, HeaderNames.Expires, StringComparison.OrdinalIgnoreCase)) 1109if (string.Equals(key, HeaderNames.Referer, StringComparison.OrdinalIgnoreCase)) 1113if (string.Equals(key, HeaderNames.Trailer, StringComparison.OrdinalIgnoreCase)) 1117if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1121if (string.Equals(key, HeaderNames.Warning, StringComparison.OrdinalIgnoreCase)) 1127if (string.Equals(key, HeaderNames.IfMatch, StringComparison.OrdinalIgnoreCase)) 1131if (string.Equals(key, HeaderNames.IfRange, StringComparison.OrdinalIgnoreCase)) 1137if (string.Equals(key, HeaderNames.Translate, StringComparison.OrdinalIgnoreCase)) 1143if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1147if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.OrdinalIgnoreCase)) 1151if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1157if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.OrdinalIgnoreCase)) 1163if (string.Equals(key, HeaderNames.ContentType, StringComparison.OrdinalIgnoreCase)) 1167if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.OrdinalIgnoreCase)) 1173if (string.Equals(key, HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase)) 1177if (string.Equals(key, HeaderNames.CacheControl, StringComparison.OrdinalIgnoreCase)) 1181if (string.Equals(key, HeaderNames.ContentRange, StringComparison.OrdinalIgnoreCase)) 1185if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.OrdinalIgnoreCase)) 1189if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1195if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.OrdinalIgnoreCase)) 1199if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase)) 1205if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1209if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1215if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1219if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.OrdinalIgnoreCase)) 1223if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.OrdinalIgnoreCase)) 1229if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.OrdinalIgnoreCase)) 1233if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.OrdinalIgnoreCase)) 1239if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.OrdinalIgnoreCase)) 1243if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.OrdinalIgnoreCase)) 1257if (string.Equals(key, HeaderNames.TE, StringComparison.OrdinalIgnoreCase)) 1264if (string.Equals(key, HeaderNames.Via, StringComparison.OrdinalIgnoreCase)) 1271if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1276if (string.Equals(key, HeaderNames.From, StringComparison.OrdinalIgnoreCase)) 1281if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1288if (string.Equals(key, HeaderNames.Allow, StringComparison.OrdinalIgnoreCase)) 1293if (string.Equals(key, HeaderNames.Range, StringComparison.OrdinalIgnoreCase)) 1300if (string.Equals(key, HeaderNames.Accept, StringComparison.OrdinalIgnoreCase)) 1305if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1310if (string.Equals(key, HeaderNames.Expect, StringComparison.OrdinalIgnoreCase)) 1315if (string.Equals(key, HeaderNames.Pragma, StringComparison.OrdinalIgnoreCase)) 1322if (string.Equals(key, HeaderNames.Expires, StringComparison.OrdinalIgnoreCase)) 1327if (string.Equals(key, HeaderNames.Referer, StringComparison.OrdinalIgnoreCase)) 1332if (string.Equals(key, HeaderNames.Trailer, StringComparison.OrdinalIgnoreCase)) 1337if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1342if (string.Equals(key, HeaderNames.Warning, StringComparison.OrdinalIgnoreCase)) 1349if (string.Equals(key, HeaderNames.IfMatch, StringComparison.OrdinalIgnoreCase)) 1354if (string.Equals(key, HeaderNames.IfRange, StringComparison.OrdinalIgnoreCase)) 1361if (string.Equals(key, HeaderNames.Translate, StringComparison.OrdinalIgnoreCase)) 1368if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1373if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.OrdinalIgnoreCase)) 1378if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1385if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.OrdinalIgnoreCase)) 1392if (string.Equals(key, HeaderNames.ContentType, StringComparison.OrdinalIgnoreCase)) 1397if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.OrdinalIgnoreCase)) 1404if (string.Equals(key, HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase)) 1409if (string.Equals(key, HeaderNames.CacheControl, StringComparison.OrdinalIgnoreCase)) 1414if (string.Equals(key, HeaderNames.ContentRange, StringComparison.OrdinalIgnoreCase)) 1419if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.OrdinalIgnoreCase)) 1424if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1431if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.OrdinalIgnoreCase)) 1436if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase)) 1443if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1448if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1455if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1460if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.OrdinalIgnoreCase)) 1465if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.OrdinalIgnoreCase)) 1472if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.OrdinalIgnoreCase)) 1477if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.OrdinalIgnoreCase)) 1484if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.OrdinalIgnoreCase)) 1489if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.OrdinalIgnoreCase)) 1505if (string.Equals(key, HeaderNames.TE, StringComparison.OrdinalIgnoreCase)) 1512if (string.Equals(key, HeaderNames.Via, StringComparison.OrdinalIgnoreCase)) 1519if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1524if (string.Equals(key, HeaderNames.From, StringComparison.OrdinalIgnoreCase)) 1529if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1536if (string.Equals(key, HeaderNames.Allow, StringComparison.OrdinalIgnoreCase)) 1541if (string.Equals(key, HeaderNames.Range, StringComparison.OrdinalIgnoreCase)) 1548if (string.Equals(key, HeaderNames.Accept, StringComparison.OrdinalIgnoreCase)) 1553if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1558if (string.Equals(key, HeaderNames.Expect, StringComparison.OrdinalIgnoreCase)) 1563if (string.Equals(key, HeaderNames.Pragma, StringComparison.OrdinalIgnoreCase)) 1570if (string.Equals(key, HeaderNames.Expires, StringComparison.OrdinalIgnoreCase)) 1575if (string.Equals(key, HeaderNames.Referer, StringComparison.OrdinalIgnoreCase)) 1580if (string.Equals(key, HeaderNames.Trailer, StringComparison.OrdinalIgnoreCase)) 1585if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1590if (string.Equals(key, HeaderNames.Warning, StringComparison.OrdinalIgnoreCase)) 1597if (string.Equals(key, HeaderNames.IfMatch, StringComparison.OrdinalIgnoreCase)) 1602if (string.Equals(key, HeaderNames.IfRange, StringComparison.OrdinalIgnoreCase)) 1609if (string.Equals(key, HeaderNames.Translate, StringComparison.OrdinalIgnoreCase)) 1616if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1621if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.OrdinalIgnoreCase)) 1626if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1633if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.OrdinalIgnoreCase)) 1640if (string.Equals(key, HeaderNames.ContentType, StringComparison.OrdinalIgnoreCase)) 1645if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.OrdinalIgnoreCase)) 1652if (string.Equals(key, HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase)) 1657if (string.Equals(key, HeaderNames.CacheControl, StringComparison.OrdinalIgnoreCase)) 1662if (string.Equals(key, HeaderNames.ContentRange, StringComparison.OrdinalIgnoreCase)) 1667if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.OrdinalIgnoreCase)) 1672if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1679if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.OrdinalIgnoreCase)) 1684if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase)) 1691if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1696if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1703if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1708if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.OrdinalIgnoreCase)) 1713if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.OrdinalIgnoreCase)) 1720if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.OrdinalIgnoreCase)) 1725if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.OrdinalIgnoreCase)) 1732if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.OrdinalIgnoreCase)) 1737if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.OrdinalIgnoreCase)) 1752if (string.Equals(key, HeaderNames.TE, StringComparison.Ordinal)) 1764if (string.Equals(key, HeaderNames.Via, StringComparison.Ordinal)) 1776if (string.Equals(key, HeaderNames.Date, StringComparison.Ordinal)) 1786if (string.Equals(key, HeaderNames.From, StringComparison.Ordinal)) 1796if (string.Equals(key, HeaderNames.Host, StringComparison.Ordinal)) 1808if (string.Equals(key, HeaderNames.Allow, StringComparison.Ordinal)) 1818if (string.Equals(key, HeaderNames.Range, StringComparison.Ordinal)) 1830if (string.Equals(key, HeaderNames.Accept, StringComparison.Ordinal)) 1840if (string.Equals(key, HeaderNames.Cookie, StringComparison.Ordinal)) 1850if (string.Equals(key, HeaderNames.Expect, StringComparison.Ordinal)) 1860if (string.Equals(key, HeaderNames.Pragma, StringComparison.Ordinal)) 1872if (string.Equals(key, HeaderNames.Expires, StringComparison.Ordinal)) 1882if (string.Equals(key, HeaderNames.Referer, StringComparison.Ordinal)) 1892if (string.Equals(key, HeaderNames.Trailer, StringComparison.Ordinal)) 1902if (string.Equals(key, HeaderNames.Upgrade, StringComparison.Ordinal)) 1912if (string.Equals(key, HeaderNames.Warning, StringComparison.Ordinal)) 1924if (string.Equals(key, HeaderNames.IfMatch, StringComparison.Ordinal)) 1934if (string.Equals(key, HeaderNames.IfRange, StringComparison.Ordinal)) 1946if (string.Equals(key, HeaderNames.Translate, StringComparison.Ordinal)) 1958if (string.Equals(key, HeaderNames.Connection, StringComparison.Ordinal)) 1968if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.Ordinal)) 1978if (string.Equals(key, HeaderNames.UserAgent, StringComparison.Ordinal)) 1990if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.Ordinal)) 2002if (string.Equals(key, HeaderNames.ContentType, StringComparison.Ordinal)) 2012if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.Ordinal)) 2024if (string.Equals(key, HeaderNames.Authorization, StringComparison.Ordinal)) 2034if (string.Equals(key, HeaderNames.CacheControl, StringComparison.Ordinal)) 2044if (string.Equals(key, HeaderNames.ContentRange, StringComparison.Ordinal)) 2054if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.Ordinal)) 2064if (string.Equals(key, HeaderNames.LastModified, StringComparison.Ordinal)) 2076if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.Ordinal)) 2086if (string.Equals(key, HeaderNames.ContentLength, StringComparison.Ordinal)) 2098if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.Ordinal)) 2108if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.Ordinal)) 2120if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.Ordinal)) 2130if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.Ordinal)) 2140if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.Ordinal)) 2152if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.Ordinal)) 2162if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.Ordinal)) 2174if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.Ordinal)) 2184if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.Ordinal)) 2203yield return HeaderNames.Accept; 2207yield return HeaderNames.AcceptCharset; 2211yield return HeaderNames.AcceptEncoding; 2215yield return HeaderNames.AcceptLanguage; 2219yield return HeaderNames.Allow; 2223yield return HeaderNames.Authorization; 2227yield return HeaderNames.CacheControl; 2231yield return HeaderNames.Connection; 2235yield return HeaderNames.ContentEncoding; 2239yield return HeaderNames.ContentLanguage; 2243yield return HeaderNames.ContentLength; 2247yield return HeaderNames.ContentLocation; 2251yield return HeaderNames.ContentMD5; 2255yield return HeaderNames.ContentRange; 2259yield return HeaderNames.ContentType; 2263yield return HeaderNames.Cookie; 2267yield return HeaderNames.Date; 2271yield return HeaderNames.Expect; 2275yield return HeaderNames.Expires; 2279yield return HeaderNames.From; 2283yield return HeaderNames.Host; 2287yield return HeaderNames.IfMatch; 2291yield return HeaderNames.IfModifiedSince; 2295yield return HeaderNames.IfNoneMatch; 2299yield return HeaderNames.IfRange; 2303yield return HeaderNames.IfUnmodifiedSince; 2307yield return HeaderNames.KeepAlive; 2311yield return HeaderNames.LastModified; 2315yield return HeaderNames.MaxForwards; 2319yield return HeaderNames.Pragma; 2323yield return HeaderNames.ProxyAuthorization; 2327yield return HeaderNames.Range; 2331yield return HeaderNames.Referer; 2335yield return HeaderNames.TE; 2339yield return HeaderNames.Trailer; 2343yield return HeaderNames.TransferEncoding; 2347yield return HeaderNames.Translate; 2351yield return HeaderNames.Upgrade; 2355yield return HeaderNames.UserAgent; 2359yield return HeaderNames.Via; 2363yield return HeaderNames.Warning; 2539yield return new KeyValuePair<string, StringValues>(HeaderNames.Accept, Accept); 2543yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptCharset, AcceptCharset); 2547yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptEncoding, AcceptEncoding); 2551yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptLanguage, AcceptLanguage); 2555yield return new KeyValuePair<string, StringValues>(HeaderNames.Allow, Allow); 2559yield return new KeyValuePair<string, StringValues>(HeaderNames.Authorization, Authorization); 2563yield return new KeyValuePair<string, StringValues>(HeaderNames.CacheControl, CacheControl); 2567yield return new KeyValuePair<string, StringValues>(HeaderNames.Connection, Connection); 2571yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentEncoding, ContentEncoding); 2575yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLanguage, ContentLanguage); 2579yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, ContentLength); 2583yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLocation, ContentLocation); 2587yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentMD5, ContentMD5); 2591yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentRange, ContentRange); 2595yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentType, ContentType); 2599yield return new KeyValuePair<string, StringValues>(HeaderNames.Cookie, Cookie); 2603yield return new KeyValuePair<string, StringValues>(HeaderNames.Date, Date); 2607yield return new KeyValuePair<string, StringValues>(HeaderNames.Expect, Expect); 2611yield return new KeyValuePair<string, StringValues>(HeaderNames.Expires, Expires); 2615yield return new KeyValuePair<string, StringValues>(HeaderNames.From, From); 2619yield return new KeyValuePair<string, StringValues>(HeaderNames.Host, Host); 2623yield return new KeyValuePair<string, StringValues>(HeaderNames.IfMatch, IfMatch); 2627yield return new KeyValuePair<string, StringValues>(HeaderNames.IfModifiedSince, IfModifiedSince); 2631yield return new KeyValuePair<string, StringValues>(HeaderNames.IfNoneMatch, IfNoneMatch); 2635yield return new KeyValuePair<string, StringValues>(HeaderNames.IfRange, IfRange); 2639yield return new KeyValuePair<string, StringValues>(HeaderNames.IfUnmodifiedSince, IfUnmodifiedSince); 2643yield return new KeyValuePair<string, StringValues>(HeaderNames.KeepAlive, KeepAlive); 2647yield return new KeyValuePair<string, StringValues>(HeaderNames.LastModified, LastModified); 2651yield return new KeyValuePair<string, StringValues>(HeaderNames.MaxForwards, MaxForwards); 2655yield return new KeyValuePair<string, StringValues>(HeaderNames.Pragma, Pragma); 2659yield return new KeyValuePair<string, StringValues>(HeaderNames.ProxyAuthorization, ProxyAuthorization); 2663yield return new KeyValuePair<string, StringValues>(HeaderNames.Range, Range); 2667yield return new KeyValuePair<string, StringValues>(HeaderNames.Referer, Referer); 2671yield return new KeyValuePair<string, StringValues>(HeaderNames.TE, TE); 2675yield return new KeyValuePair<string, StringValues>(HeaderNames.Trailer, Trailer); 2679yield return new KeyValuePair<string, StringValues>(HeaderNames.TransferEncoding, TransferEncoding); 2683yield return new KeyValuePair<string, StringValues>(HeaderNames.Translate, Translate); 2687yield return new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, Upgrade); 2691yield return new KeyValuePair<string, StringValues>(HeaderNames.UserAgent, UserAgent); 2695yield return new KeyValuePair<string, StringValues>(HeaderNames.Via, Via); 2699yield return new KeyValuePair<string, StringValues>(HeaderNames.Warning, Warning); 2750HttpSysRequestHeader.Accept => HeaderNames.Accept, 2751HttpSysRequestHeader.AcceptCharset => HeaderNames.AcceptCharset, 2752HttpSysRequestHeader.AcceptEncoding => HeaderNames.AcceptEncoding, 2753HttpSysRequestHeader.AcceptLanguage => HeaderNames.AcceptLanguage, 2754HttpSysRequestHeader.Allow => HeaderNames.Allow, 2755HttpSysRequestHeader.Authorization => HeaderNames.Authorization, 2756HttpSysRequestHeader.CacheControl => HeaderNames.CacheControl, 2757HttpSysRequestHeader.Connection => HeaderNames.Connection, 2758HttpSysRequestHeader.ContentEncoding => HeaderNames.ContentEncoding, 2759HttpSysRequestHeader.ContentLanguage => HeaderNames.ContentLanguage, 2760HttpSysRequestHeader.ContentLength => HeaderNames.ContentLength, 2761HttpSysRequestHeader.ContentLocation => HeaderNames.ContentLocation, 2762HttpSysRequestHeader.ContentMd5 => HeaderNames.ContentMD5, 2763HttpSysRequestHeader.ContentRange => HeaderNames.ContentRange, 2764HttpSysRequestHeader.ContentType => HeaderNames.ContentType, 2765HttpSysRequestHeader.Cookie => HeaderNames.Cookie, 2766HttpSysRequestHeader.Date => HeaderNames.Date, 2767HttpSysRequestHeader.Expect => HeaderNames.Expect, 2768HttpSysRequestHeader.Expires => HeaderNames.Expires, 2769HttpSysRequestHeader.From => HeaderNames.From, 2770HttpSysRequestHeader.Host => HeaderNames.Host, 2771HttpSysRequestHeader.IfMatch => HeaderNames.IfMatch, 2772HttpSysRequestHeader.IfModifiedSince => HeaderNames.IfModifiedSince, 2773HttpSysRequestHeader.IfNoneMatch => HeaderNames.IfNoneMatch, 2774HttpSysRequestHeader.IfRange => HeaderNames.IfRange, 2775HttpSysRequestHeader.IfUnmodifiedSince => HeaderNames.IfUnmodifiedSince, 2776HttpSysRequestHeader.KeepAlive => HeaderNames.KeepAlive, 2777HttpSysRequestHeader.LastModified => HeaderNames.LastModified, 2778HttpSysRequestHeader.MaxForwards => HeaderNames.MaxForwards, 2779HttpSysRequestHeader.Pragma => HeaderNames.Pragma, 2780HttpSysRequestHeader.ProxyAuthorization => HeaderNames.ProxyAuthorization, 2781HttpSysRequestHeader.Range => HeaderNames.Range, 2782HttpSysRequestHeader.Referer => HeaderNames.Referer, 2783HttpSysRequestHeader.Te => HeaderNames.TE, 2784HttpSysRequestHeader.Trailer => HeaderNames.Trailer, 2785HttpSysRequestHeader.TransferEncoding => HeaderNames.TransferEncoding, 2786HttpSysRequestHeader.Translate => HeaderNames.Translate, 2787HttpSysRequestHeader.Upgrade => HeaderNames.Upgrade, 2788HttpSysRequestHeader.UserAgent => HeaderNames.UserAgent, 2789HttpSysRequestHeader.Via => HeaderNames.Via, 2790HttpSysRequestHeader.Warning => HeaderNames.Warning,
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (57)
Http2Tests.cs (10)
121Assert.False(httpContext.Request.Headers.ContainsKey(HeaderNames.TransferEncoding)); 171Assert.False(httpContext.Request.Headers.ContainsKey(HeaderNames.TransferEncoding)); 188new KeyValuePair<string, string>(HeaderNames.ContentLength, "11"), 340Assert.False(decodedHeaders.ContainsKey(HeaderNames.Connection)); 351Assert.False(decodedHeaders.ContainsKey(HeaderNames.Connection)); 387Assert.False(decodedHeaders.ContainsKey(HeaderNames.Connection)); 426Assert.False(decodedHeaders.ContainsKey(HeaderNames.Connection)); 466Assert.False(decodedHeaders.ContainsKey(HeaderNames.Connection)); 483Assert.False(decodedHeaders.ContainsKey(HeaderNames.Connection)); 502Assert.False(decodedHeaders.ContainsKey(HeaderNames.Connection));
Http3Tests.cs (2)
81Assert.Equal(altsvc, response1.Headers.GetValues(HeaderNames.AltSvc).SingleOrDefault()); 118Assert.Equal(altsvc, response2.Headers.GetValues(HeaderNames.AltSvc).SingleOrDefault());
RequestBodyTests.cs (8)
261httpContext.Request.Headers[HeaderNames.ContentLength] = "123"; 262CheckHeadersCount(HeaderNames.ContentLength, 1, httpContext.Request); 264httpContext.Request.Headers[HeaderNames.ContentLength] = "456"; 265CheckHeadersCount(HeaderNames.ContentLength, 1, httpContext.Request); 267httpContext.Request.Headers[HeaderNames.ContentLength] = StringValues.Empty; 268CheckHeadersCount(HeaderNames.ContentLength, 0, httpContext.Request); 270Assert.Equal("", httpContext.Request.Headers[HeaderNames.ContentLength].ToString()); 272CheckHeadersCount(HeaderNames.ContentLength, 1, httpContext.Request);
RequestHeaderTests.cs (30)
192Assert.Contains(HeaderNames.Host, requestHeaders.Keys); 220Assert.Contains(HeaderNames.Host, requestHeaders.Keys); 287yield return (HttpSysRequestHeader.CacheControl, HeaderNames.CacheControl); 288yield return (HttpSysRequestHeader.Connection, HeaderNames.Connection); 290yield return (HttpSysRequestHeader.KeepAlive, HeaderNames.KeepAlive); 291yield return (HttpSysRequestHeader.Pragma, HeaderNames.Pragma); 292yield return (HttpSysRequestHeader.Trailer, HeaderNames.Trailer); 293yield return (HttpSysRequestHeader.TransferEncoding, HeaderNames.TransferEncoding); 294yield return (HttpSysRequestHeader.Upgrade, HeaderNames.Upgrade); 301yield return (HttpSysRequestHeader.ContentLocation, HeaderNames.ContentLocation); 302yield return (HttpSysRequestHeader.ContentMd5, HeaderNames.ContentMD5); 303yield return (HttpSysRequestHeader.ContentRange, HeaderNames.ContentRange); 304yield return (HttpSysRequestHeader.LastModified, HeaderNames.LastModified); 306yield return (HttpSysRequestHeader.AcceptCharset, HeaderNames.AcceptCharset); 307yield return (HttpSysRequestHeader.AcceptEncoding, HeaderNames.AcceptEncoding); 308yield return (HttpSysRequestHeader.AcceptLanguage, HeaderNames.AcceptLanguage); 309yield return (HttpSysRequestHeader.Authorization, HeaderNames.Authorization); 310yield return (HttpSysRequestHeader.Cookie, HeaderNames.Cookie); 311yield return (HttpSysRequestHeader.Expect, HeaderNames.Expect); 312yield return (HttpSysRequestHeader.From, HeaderNames.From); 313yield return (HttpSysRequestHeader.IfMatch, HeaderNames.IfMatch); 314yield return (HttpSysRequestHeader.IfModifiedSince, HeaderNames.IfModifiedSince); 315yield return (HttpSysRequestHeader.IfNoneMatch, HeaderNames.IfNoneMatch); 316yield return (HttpSysRequestHeader.IfRange, HeaderNames.IfRange); 317yield return (HttpSysRequestHeader.IfUnmodifiedSince, HeaderNames.IfUnmodifiedSince); 318yield return (HttpSysRequestHeader.MaxForwards, HeaderNames.MaxForwards); 319yield return (HttpSysRequestHeader.ProxyAuthorization, HeaderNames.ProxyAuthorization); 320yield return (HttpSysRequestHeader.Referer, HeaderNames.Referer); 322yield return (HttpSysRequestHeader.Translate, HeaderNames.Translate); 323yield return (HttpSysRequestHeader.UserAgent, HeaderNames.UserAgent);
ResponseTrailersTests.cs (7)
140Assert.Equal(body.Length.ToString(CultureInfo.InvariantCulture), response.Content.Headers.GetValues(HeaderNames.ContentLength).Single()); 164Assert.True(response.Content.Headers.TryGetValues(HeaderNames.ContentLength, out var contentLength), HeaderNames.ContentLength); 189Assert.True(response.Content.Headers.TryGetValues(HeaderNames.ContentLength, out var contentLength), HeaderNames.ContentLength); 215Assert.True(response.Content.Headers.TryGetValues(HeaderNames.ContentLength, out var contentLength), HeaderNames.ContentLength);
Microsoft.AspNetCore.Server.HttpSys.Tests (17)
RequestHeaderTests.cs (17)
35Assert.Contains(HeaderNames.Host, requestHeaders.Keys); 36Assert.Contains(HeaderNames.ContentType, requestHeaders.Keys); 56Assert.Contains(HeaderNames.Host, requestHeaders.Keys); 57Assert.Contains(HeaderNames.ContentType, requestHeaders.Keys); 156Assert.Contains(HeaderNames.Host, requestHeaders.Keys); 157Assert.Contains(HeaderNames.ContentType, requestHeaders.Keys); 180Assert.Contains(HeaderNames.Host, requestHeaders.Keys); 181Assert.Contains(HeaderNames.ContentType, requestHeaders.Keys); 287requestHeaders.Remove(HeaderNames.ContentType); 309requestHeaders[HeaderNames.From] = "FromValue"; 328Assert.Contains(HeaderNames.Host, requestHeaders.Keys); 329Assert.Contains(HeaderNames.ContentType, requestHeaders.Keys); 331requestHeaders.Remove(HeaderNames.ContentType); 333Assert.DoesNotContain(HeaderNames.ContentType, requestHeaders.Keys); 349Assert.DoesNotContain(HeaderNames.From, requestHeaders.Keys); 351requestHeaders[HeaderNames.From] = "FromValue"; 353Assert.Contains(HeaderNames.From, requestHeaders.Keys);
Microsoft.AspNetCore.Server.IIS (357)
Core\IISHttpContext.cs (2)
385RequestHeaders.Add("X-Content-Length", RequestHeaders[HeaderNames.ContentLength]); 578if (string.Equals(ConnectionClose, HttpResponseHeaders[HeaderNames.Connection], StringComparison.OrdinalIgnoreCase))
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (30)
23HeaderNames.CacheControl, 24HeaderNames.Connection, 25HeaderNames.Date, 26HeaderNames.KeepAlive, 27HeaderNames.Pragma, 28HeaderNames.Trailer, 29HeaderNames.TransferEncoding, 30HeaderNames.Upgrade, 31HeaderNames.Via, 32HeaderNames.Warning, 34HeaderNames.Allow, 35HeaderNames.ContentLength, 36HeaderNames.ContentType, 37HeaderNames.ContentEncoding, 38HeaderNames.ContentLanguage, 39HeaderNames.ContentLocation, 40HeaderNames.ContentMD5, 41HeaderNames.ContentRange, 42HeaderNames.Expires, 43HeaderNames.LastModified, 45HeaderNames.AcceptRanges, 46HeaderNames.Age, 47HeaderNames.ETag, 48HeaderNames.Location, 49HeaderNames.ProxyAuthenticate, 50HeaderNames.RetryAfter, 51HeaderNames.Server, 52HeaderNames.SetCookie, 53HeaderNames.Vary, 54HeaderNames.WWWAuthenticate,
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (35)
22HeaderNames.TransferEncoding, HeaderNames.ContentLength, 25HeaderNames.Host, 29HeaderNames.CacheControl, HeaderNames.Expect, HeaderNames.MaxForwards, HeaderNames.Pragma, HeaderNames.Range, HeaderNames.TE, 32HeaderNames.IfMatch, HeaderNames.IfNoneMatch, HeaderNames.IfModifiedSince, HeaderNames.IfUnmodifiedSince, HeaderNames.IfRange, 35HeaderNames.WWWAuthenticate, HeaderNames.Authorization, HeaderNames.ProxyAuthenticate, HeaderNames.ProxyAuthorization, HeaderNames.SetCookie, HeaderNames.Cookie, 39HeaderNames.Age, HeaderNames.Expires, HeaderNames.Date, HeaderNames.Location, HeaderNames.RetryAfter, HeaderNames.Vary, HeaderNames.Warning, 42HeaderNames.ContentEncoding, HeaderNames.ContentType, HeaderNames.ContentRange, HeaderNames.Trailer 123var rawValue = this[HeaderNames.ContentLength]; 143ValidateRestrictedTrailers(HeaderNames.ContentLength); 153this[HeaderNames.ContentLength] = _contentLengthText; 158Remove(HeaderNames.ContentLength);
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (3)
179var rawValue = this[HeaderNames.ContentLength]; 208this[HeaderNames.ContentLength] = _contentLengthText; 213Remove(HeaderNames.ContentLength);
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (287)
1051if (string.Equals(key, HeaderNames.TE, StringComparison.OrdinalIgnoreCase)) 1057if (string.Equals(key, HeaderNames.Via, StringComparison.OrdinalIgnoreCase)) 1063if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1067if (string.Equals(key, HeaderNames.From, StringComparison.OrdinalIgnoreCase)) 1071if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1077if (string.Equals(key, HeaderNames.Allow, StringComparison.OrdinalIgnoreCase)) 1081if (string.Equals(key, HeaderNames.Range, StringComparison.OrdinalIgnoreCase)) 1087if (string.Equals(key, HeaderNames.Accept, StringComparison.OrdinalIgnoreCase)) 1091if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1095if (string.Equals(key, HeaderNames.Expect, StringComparison.OrdinalIgnoreCase)) 1099if (string.Equals(key, HeaderNames.Pragma, StringComparison.OrdinalIgnoreCase)) 1105if (string.Equals(key, HeaderNames.Expires, StringComparison.OrdinalIgnoreCase)) 1109if (string.Equals(key, HeaderNames.Referer, StringComparison.OrdinalIgnoreCase)) 1113if (string.Equals(key, HeaderNames.Trailer, StringComparison.OrdinalIgnoreCase)) 1117if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1121if (string.Equals(key, HeaderNames.Warning, StringComparison.OrdinalIgnoreCase)) 1127if (string.Equals(key, HeaderNames.IfMatch, StringComparison.OrdinalIgnoreCase)) 1131if (string.Equals(key, HeaderNames.IfRange, StringComparison.OrdinalIgnoreCase)) 1137if (string.Equals(key, HeaderNames.Translate, StringComparison.OrdinalIgnoreCase)) 1143if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1147if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.OrdinalIgnoreCase)) 1151if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1157if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.OrdinalIgnoreCase)) 1163if (string.Equals(key, HeaderNames.ContentType, StringComparison.OrdinalIgnoreCase)) 1167if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.OrdinalIgnoreCase)) 1173if (string.Equals(key, HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase)) 1177if (string.Equals(key, HeaderNames.CacheControl, StringComparison.OrdinalIgnoreCase)) 1181if (string.Equals(key, HeaderNames.ContentRange, StringComparison.OrdinalIgnoreCase)) 1185if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.OrdinalIgnoreCase)) 1189if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1195if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.OrdinalIgnoreCase)) 1199if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase)) 1205if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1209if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1215if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1219if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.OrdinalIgnoreCase)) 1223if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.OrdinalIgnoreCase)) 1229if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.OrdinalIgnoreCase)) 1233if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.OrdinalIgnoreCase)) 1239if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.OrdinalIgnoreCase)) 1243if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.OrdinalIgnoreCase)) 1257if (string.Equals(key, HeaderNames.TE, StringComparison.OrdinalIgnoreCase)) 1264if (string.Equals(key, HeaderNames.Via, StringComparison.OrdinalIgnoreCase)) 1271if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1276if (string.Equals(key, HeaderNames.From, StringComparison.OrdinalIgnoreCase)) 1281if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1288if (string.Equals(key, HeaderNames.Allow, StringComparison.OrdinalIgnoreCase)) 1293if (string.Equals(key, HeaderNames.Range, StringComparison.OrdinalIgnoreCase)) 1300if (string.Equals(key, HeaderNames.Accept, StringComparison.OrdinalIgnoreCase)) 1305if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1310if (string.Equals(key, HeaderNames.Expect, StringComparison.OrdinalIgnoreCase)) 1315if (string.Equals(key, HeaderNames.Pragma, StringComparison.OrdinalIgnoreCase)) 1322if (string.Equals(key, HeaderNames.Expires, StringComparison.OrdinalIgnoreCase)) 1327if (string.Equals(key, HeaderNames.Referer, StringComparison.OrdinalIgnoreCase)) 1332if (string.Equals(key, HeaderNames.Trailer, StringComparison.OrdinalIgnoreCase)) 1337if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1342if (string.Equals(key, HeaderNames.Warning, StringComparison.OrdinalIgnoreCase)) 1349if (string.Equals(key, HeaderNames.IfMatch, StringComparison.OrdinalIgnoreCase)) 1354if (string.Equals(key, HeaderNames.IfRange, StringComparison.OrdinalIgnoreCase)) 1361if (string.Equals(key, HeaderNames.Translate, StringComparison.OrdinalIgnoreCase)) 1368if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1373if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.OrdinalIgnoreCase)) 1378if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1385if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.OrdinalIgnoreCase)) 1392if (string.Equals(key, HeaderNames.ContentType, StringComparison.OrdinalIgnoreCase)) 1397if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.OrdinalIgnoreCase)) 1404if (string.Equals(key, HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase)) 1409if (string.Equals(key, HeaderNames.CacheControl, StringComparison.OrdinalIgnoreCase)) 1414if (string.Equals(key, HeaderNames.ContentRange, StringComparison.OrdinalIgnoreCase)) 1419if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.OrdinalIgnoreCase)) 1424if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1431if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.OrdinalIgnoreCase)) 1436if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase)) 1443if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1448if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1455if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1460if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.OrdinalIgnoreCase)) 1465if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.OrdinalIgnoreCase)) 1472if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.OrdinalIgnoreCase)) 1477if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.OrdinalIgnoreCase)) 1484if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.OrdinalIgnoreCase)) 1489if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.OrdinalIgnoreCase)) 1505if (string.Equals(key, HeaderNames.TE, StringComparison.OrdinalIgnoreCase)) 1512if (string.Equals(key, HeaderNames.Via, StringComparison.OrdinalIgnoreCase)) 1519if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1524if (string.Equals(key, HeaderNames.From, StringComparison.OrdinalIgnoreCase)) 1529if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1536if (string.Equals(key, HeaderNames.Allow, StringComparison.OrdinalIgnoreCase)) 1541if (string.Equals(key, HeaderNames.Range, StringComparison.OrdinalIgnoreCase)) 1548if (string.Equals(key, HeaderNames.Accept, StringComparison.OrdinalIgnoreCase)) 1553if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1558if (string.Equals(key, HeaderNames.Expect, StringComparison.OrdinalIgnoreCase)) 1563if (string.Equals(key, HeaderNames.Pragma, StringComparison.OrdinalIgnoreCase)) 1570if (string.Equals(key, HeaderNames.Expires, StringComparison.OrdinalIgnoreCase)) 1575if (string.Equals(key, HeaderNames.Referer, StringComparison.OrdinalIgnoreCase)) 1580if (string.Equals(key, HeaderNames.Trailer, StringComparison.OrdinalIgnoreCase)) 1585if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1590if (string.Equals(key, HeaderNames.Warning, StringComparison.OrdinalIgnoreCase)) 1597if (string.Equals(key, HeaderNames.IfMatch, StringComparison.OrdinalIgnoreCase)) 1602if (string.Equals(key, HeaderNames.IfRange, StringComparison.OrdinalIgnoreCase)) 1609if (string.Equals(key, HeaderNames.Translate, StringComparison.OrdinalIgnoreCase)) 1616if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1621if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.OrdinalIgnoreCase)) 1626if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1633if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.OrdinalIgnoreCase)) 1640if (string.Equals(key, HeaderNames.ContentType, StringComparison.OrdinalIgnoreCase)) 1645if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.OrdinalIgnoreCase)) 1652if (string.Equals(key, HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase)) 1657if (string.Equals(key, HeaderNames.CacheControl, StringComparison.OrdinalIgnoreCase)) 1662if (string.Equals(key, HeaderNames.ContentRange, StringComparison.OrdinalIgnoreCase)) 1667if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.OrdinalIgnoreCase)) 1672if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1679if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.OrdinalIgnoreCase)) 1684if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase)) 1691if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1696if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1703if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1708if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.OrdinalIgnoreCase)) 1713if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.OrdinalIgnoreCase)) 1720if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.OrdinalIgnoreCase)) 1725if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.OrdinalIgnoreCase)) 1732if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.OrdinalIgnoreCase)) 1737if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.OrdinalIgnoreCase)) 1752if (string.Equals(key, HeaderNames.TE, StringComparison.Ordinal)) 1764if (string.Equals(key, HeaderNames.Via, StringComparison.Ordinal)) 1776if (string.Equals(key, HeaderNames.Date, StringComparison.Ordinal)) 1786if (string.Equals(key, HeaderNames.From, StringComparison.Ordinal)) 1796if (string.Equals(key, HeaderNames.Host, StringComparison.Ordinal)) 1808if (string.Equals(key, HeaderNames.Allow, StringComparison.Ordinal)) 1818if (string.Equals(key, HeaderNames.Range, StringComparison.Ordinal)) 1830if (string.Equals(key, HeaderNames.Accept, StringComparison.Ordinal)) 1840if (string.Equals(key, HeaderNames.Cookie, StringComparison.Ordinal)) 1850if (string.Equals(key, HeaderNames.Expect, StringComparison.Ordinal)) 1860if (string.Equals(key, HeaderNames.Pragma, StringComparison.Ordinal)) 1872if (string.Equals(key, HeaderNames.Expires, StringComparison.Ordinal)) 1882if (string.Equals(key, HeaderNames.Referer, StringComparison.Ordinal)) 1892if (string.Equals(key, HeaderNames.Trailer, StringComparison.Ordinal)) 1902if (string.Equals(key, HeaderNames.Upgrade, StringComparison.Ordinal)) 1912if (string.Equals(key, HeaderNames.Warning, StringComparison.Ordinal)) 1924if (string.Equals(key, HeaderNames.IfMatch, StringComparison.Ordinal)) 1934if (string.Equals(key, HeaderNames.IfRange, StringComparison.Ordinal)) 1946if (string.Equals(key, HeaderNames.Translate, StringComparison.Ordinal)) 1958if (string.Equals(key, HeaderNames.Connection, StringComparison.Ordinal)) 1968if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.Ordinal)) 1978if (string.Equals(key, HeaderNames.UserAgent, StringComparison.Ordinal)) 1990if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.Ordinal)) 2002if (string.Equals(key, HeaderNames.ContentType, StringComparison.Ordinal)) 2012if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.Ordinal)) 2024if (string.Equals(key, HeaderNames.Authorization, StringComparison.Ordinal)) 2034if (string.Equals(key, HeaderNames.CacheControl, StringComparison.Ordinal)) 2044if (string.Equals(key, HeaderNames.ContentRange, StringComparison.Ordinal)) 2054if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.Ordinal)) 2064if (string.Equals(key, HeaderNames.LastModified, StringComparison.Ordinal)) 2076if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.Ordinal)) 2086if (string.Equals(key, HeaderNames.ContentLength, StringComparison.Ordinal)) 2098if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.Ordinal)) 2108if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.Ordinal)) 2120if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.Ordinal)) 2130if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.Ordinal)) 2140if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.Ordinal)) 2152if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.Ordinal)) 2162if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.Ordinal)) 2174if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.Ordinal)) 2184if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.Ordinal)) 2203yield return HeaderNames.Accept; 2207yield return HeaderNames.AcceptCharset; 2211yield return HeaderNames.AcceptEncoding; 2215yield return HeaderNames.AcceptLanguage; 2219yield return HeaderNames.Allow; 2223yield return HeaderNames.Authorization; 2227yield return HeaderNames.CacheControl; 2231yield return HeaderNames.Connection; 2235yield return HeaderNames.ContentEncoding; 2239yield return HeaderNames.ContentLanguage; 2243yield return HeaderNames.ContentLength; 2247yield return HeaderNames.ContentLocation; 2251yield return HeaderNames.ContentMD5; 2255yield return HeaderNames.ContentRange; 2259yield return HeaderNames.ContentType; 2263yield return HeaderNames.Cookie; 2267yield return HeaderNames.Date; 2271yield return HeaderNames.Expect; 2275yield return HeaderNames.Expires; 2279yield return HeaderNames.From; 2283yield return HeaderNames.Host; 2287yield return HeaderNames.IfMatch; 2291yield return HeaderNames.IfModifiedSince; 2295yield return HeaderNames.IfNoneMatch; 2299yield return HeaderNames.IfRange; 2303yield return HeaderNames.IfUnmodifiedSince; 2307yield return HeaderNames.KeepAlive; 2311yield return HeaderNames.LastModified; 2315yield return HeaderNames.MaxForwards; 2319yield return HeaderNames.Pragma; 2323yield return HeaderNames.ProxyAuthorization; 2327yield return HeaderNames.Range; 2331yield return HeaderNames.Referer; 2335yield return HeaderNames.TE; 2339yield return HeaderNames.Trailer; 2343yield return HeaderNames.TransferEncoding; 2347yield return HeaderNames.Translate; 2351yield return HeaderNames.Upgrade; 2355yield return HeaderNames.UserAgent; 2359yield return HeaderNames.Via; 2363yield return HeaderNames.Warning; 2539yield return new KeyValuePair<string, StringValues>(HeaderNames.Accept, Accept); 2543yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptCharset, AcceptCharset); 2547yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptEncoding, AcceptEncoding); 2551yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptLanguage, AcceptLanguage); 2555yield return new KeyValuePair<string, StringValues>(HeaderNames.Allow, Allow); 2559yield return new KeyValuePair<string, StringValues>(HeaderNames.Authorization, Authorization); 2563yield return new KeyValuePair<string, StringValues>(HeaderNames.CacheControl, CacheControl); 2567yield return new KeyValuePair<string, StringValues>(HeaderNames.Connection, Connection); 2571yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentEncoding, ContentEncoding); 2575yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLanguage, ContentLanguage); 2579yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, ContentLength); 2583yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLocation, ContentLocation); 2587yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentMD5, ContentMD5); 2591yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentRange, ContentRange); 2595yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentType, ContentType); 2599yield return new KeyValuePair<string, StringValues>(HeaderNames.Cookie, Cookie); 2603yield return new KeyValuePair<string, StringValues>(HeaderNames.Date, Date); 2607yield return new KeyValuePair<string, StringValues>(HeaderNames.Expect, Expect); 2611yield return new KeyValuePair<string, StringValues>(HeaderNames.Expires, Expires); 2615yield return new KeyValuePair<string, StringValues>(HeaderNames.From, From); 2619yield return new KeyValuePair<string, StringValues>(HeaderNames.Host, Host); 2623yield return new KeyValuePair<string, StringValues>(HeaderNames.IfMatch, IfMatch); 2627yield return new KeyValuePair<string, StringValues>(HeaderNames.IfModifiedSince, IfModifiedSince); 2631yield return new KeyValuePair<string, StringValues>(HeaderNames.IfNoneMatch, IfNoneMatch); 2635yield return new KeyValuePair<string, StringValues>(HeaderNames.IfRange, IfRange); 2639yield return new KeyValuePair<string, StringValues>(HeaderNames.IfUnmodifiedSince, IfUnmodifiedSince); 2643yield return new KeyValuePair<string, StringValues>(HeaderNames.KeepAlive, KeepAlive); 2647yield return new KeyValuePair<string, StringValues>(HeaderNames.LastModified, LastModified); 2651yield return new KeyValuePair<string, StringValues>(HeaderNames.MaxForwards, MaxForwards); 2655yield return new KeyValuePair<string, StringValues>(HeaderNames.Pragma, Pragma); 2659yield return new KeyValuePair<string, StringValues>(HeaderNames.ProxyAuthorization, ProxyAuthorization); 2663yield return new KeyValuePair<string, StringValues>(HeaderNames.Range, Range); 2667yield return new KeyValuePair<string, StringValues>(HeaderNames.Referer, Referer); 2671yield return new KeyValuePair<string, StringValues>(HeaderNames.TE, TE); 2675yield return new KeyValuePair<string, StringValues>(HeaderNames.Trailer, Trailer); 2679yield return new KeyValuePair<string, StringValues>(HeaderNames.TransferEncoding, TransferEncoding); 2683yield return new KeyValuePair<string, StringValues>(HeaderNames.Translate, Translate); 2687yield return new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, Upgrade); 2691yield return new KeyValuePair<string, StringValues>(HeaderNames.UserAgent, UserAgent); 2695yield return new KeyValuePair<string, StringValues>(HeaderNames.Via, Via); 2699yield return new KeyValuePair<string, StringValues>(HeaderNames.Warning, Warning); 2750HttpSysRequestHeader.Accept => HeaderNames.Accept, 2751HttpSysRequestHeader.AcceptCharset => HeaderNames.AcceptCharset, 2752HttpSysRequestHeader.AcceptEncoding => HeaderNames.AcceptEncoding, 2753HttpSysRequestHeader.AcceptLanguage => HeaderNames.AcceptLanguage, 2754HttpSysRequestHeader.Allow => HeaderNames.Allow, 2755HttpSysRequestHeader.Authorization => HeaderNames.Authorization, 2756HttpSysRequestHeader.CacheControl => HeaderNames.CacheControl, 2757HttpSysRequestHeader.Connection => HeaderNames.Connection, 2758HttpSysRequestHeader.ContentEncoding => HeaderNames.ContentEncoding, 2759HttpSysRequestHeader.ContentLanguage => HeaderNames.ContentLanguage, 2760HttpSysRequestHeader.ContentLength => HeaderNames.ContentLength, 2761HttpSysRequestHeader.ContentLocation => HeaderNames.ContentLocation, 2762HttpSysRequestHeader.ContentMd5 => HeaderNames.ContentMD5, 2763HttpSysRequestHeader.ContentRange => HeaderNames.ContentRange, 2764HttpSysRequestHeader.ContentType => HeaderNames.ContentType, 2765HttpSysRequestHeader.Cookie => HeaderNames.Cookie, 2766HttpSysRequestHeader.Date => HeaderNames.Date, 2767HttpSysRequestHeader.Expect => HeaderNames.Expect, 2768HttpSysRequestHeader.Expires => HeaderNames.Expires, 2769HttpSysRequestHeader.From => HeaderNames.From, 2770HttpSysRequestHeader.Host => HeaderNames.Host, 2771HttpSysRequestHeader.IfMatch => HeaderNames.IfMatch, 2772HttpSysRequestHeader.IfModifiedSince => HeaderNames.IfModifiedSince, 2773HttpSysRequestHeader.IfNoneMatch => HeaderNames.IfNoneMatch, 2774HttpSysRequestHeader.IfRange => HeaderNames.IfRange, 2775HttpSysRequestHeader.IfUnmodifiedSince => HeaderNames.IfUnmodifiedSince, 2776HttpSysRequestHeader.KeepAlive => HeaderNames.KeepAlive, 2777HttpSysRequestHeader.LastModified => HeaderNames.LastModified, 2778HttpSysRequestHeader.MaxForwards => HeaderNames.MaxForwards, 2779HttpSysRequestHeader.Pragma => HeaderNames.Pragma, 2780HttpSysRequestHeader.ProxyAuthorization => HeaderNames.ProxyAuthorization, 2781HttpSysRequestHeader.Range => HeaderNames.Range, 2782HttpSysRequestHeader.Referer => HeaderNames.Referer, 2783HttpSysRequestHeader.Te => HeaderNames.TE, 2784HttpSysRequestHeader.Trailer => HeaderNames.Trailer, 2785HttpSysRequestHeader.TransferEncoding => HeaderNames.TransferEncoding, 2786HttpSysRequestHeader.Translate => HeaderNames.Translate, 2787HttpSysRequestHeader.Upgrade => HeaderNames.Upgrade, 2788HttpSysRequestHeader.UserAgent => HeaderNames.UserAgent, 2789HttpSysRequestHeader.Via => HeaderNames.Via, 2790HttpSysRequestHeader.Warning => HeaderNames.Warning,
Microsoft.AspNetCore.Server.Kestrel.Core (1597)
Internal\Http\Http1MessageBody.cs (1)
185headerDictionary.Add("X-Content-Length", headerDictionary[HeaderNames.ContentLength]);
Internal\Http\HttpHeaders.cs (1)
316private static readonly StringValues ConnectionValueUpgrade = HeaderNames.Upgrade;
Internal\Http\HttpHeaders.Generated.cs (1589)
284HeaderNames.Accept, 285HeaderNames.AcceptCharset, 286HeaderNames.AcceptEncoding, 287HeaderNames.AcceptLanguage, 288HeaderNames.AcceptRanges, 289HeaderNames.AccessControlAllowCredentials, 290HeaderNames.AccessControlAllowHeaders, 291HeaderNames.AccessControlAllowMethods, 292HeaderNames.AccessControlAllowOrigin, 293HeaderNames.AccessControlExposeHeaders, 294HeaderNames.AccessControlMaxAge, 295HeaderNames.AccessControlRequestHeaders, 296HeaderNames.AccessControlRequestMethod, 297HeaderNames.Age, 298HeaderNames.Allow, 299HeaderNames.AltSvc, 300HeaderNames.Authorization, 301HeaderNames.Baggage, 302HeaderNames.CacheControl, 303HeaderNames.Connection, 304HeaderNames.ContentDisposition, 305HeaderNames.ContentEncoding, 306HeaderNames.ContentLanguage, 307HeaderNames.ContentLength, 308HeaderNames.ContentLocation, 309HeaderNames.ContentMD5, 310HeaderNames.ContentRange, 311HeaderNames.ContentSecurityPolicy, 312HeaderNames.ContentSecurityPolicyReportOnly, 313HeaderNames.ContentType, 314HeaderNames.CorrelationContext, 315HeaderNames.Cookie, 316HeaderNames.Date, 317HeaderNames.DNT, 318HeaderNames.ETag, 319HeaderNames.Expires, 320HeaderNames.Expect, 321HeaderNames.From, 322HeaderNames.GrpcAcceptEncoding, 323HeaderNames.GrpcEncoding, 324HeaderNames.GrpcMessage, 325HeaderNames.GrpcStatus, 326HeaderNames.GrpcTimeout, 327HeaderNames.Host, 328HeaderNames.KeepAlive, 329HeaderNames.IfMatch, 330HeaderNames.IfModifiedSince, 331HeaderNames.IfNoneMatch, 332HeaderNames.IfRange, 333HeaderNames.IfUnmodifiedSince, 334HeaderNames.LastModified, 335HeaderNames.Link, 336HeaderNames.Location, 337HeaderNames.MaxForwards, 338HeaderNames.Origin, 339HeaderNames.Pragma, 340HeaderNames.ProxyAuthenticate, 341HeaderNames.ProxyAuthorization, 342HeaderNames.ProxyConnection, 343HeaderNames.Range, 344HeaderNames.Referer, 345HeaderNames.RetryAfter, 346HeaderNames.RequestId, 347HeaderNames.SecWebSocketAccept, 348HeaderNames.SecWebSocketKey, 349HeaderNames.SecWebSocketProtocol, 350HeaderNames.SecWebSocketVersion, 351HeaderNames.SecWebSocketExtensions, 352HeaderNames.Server, 353HeaderNames.SetCookie, 354HeaderNames.StrictTransportSecurity, 355HeaderNames.TE, 356HeaderNames.Trailer, 357HeaderNames.TransferEncoding, 358HeaderNames.Translate, 359HeaderNames.TraceParent, 360HeaderNames.TraceState, 361HeaderNames.Upgrade, 362HeaderNames.UpgradeInsecureRequests, 363HeaderNames.UserAgent, 364HeaderNames.Vary, 365HeaderNames.Via, 366HeaderNames.Warning, 367HeaderNames.WebSocketSubProtocols, 368HeaderNames.WWWAuthenticate, 369HeaderNames.XContentTypeOptions, 370HeaderNames.XFrameOptions, 371HeaderNames.XPoweredBy, 372HeaderNames.XRequestedWith, 373HeaderNames.XUACompatible, 374HeaderNames.XXSSProtection, 1806if (!TryGetUnknown(HeaderNames.AcceptRanges, ref value)) 1815SetValueUnknown(HeaderNames.AcceptRanges, value); 1823if (!TryGetUnknown(HeaderNames.AccessControlAllowCredentials, ref value)) 1832SetValueUnknown(HeaderNames.AccessControlAllowCredentials, value); 1840if (!TryGetUnknown(HeaderNames.AccessControlAllowHeaders, ref value)) 1849SetValueUnknown(HeaderNames.AccessControlAllowHeaders, value); 1857if (!TryGetUnknown(HeaderNames.AccessControlAllowMethods, ref value)) 1866SetValueUnknown(HeaderNames.AccessControlAllowMethods, value); 1874if (!TryGetUnknown(HeaderNames.AccessControlAllowOrigin, ref value)) 1883SetValueUnknown(HeaderNames.AccessControlAllowOrigin, value); 1891if (!TryGetUnknown(HeaderNames.AccessControlExposeHeaders, ref value)) 1900SetValueUnknown(HeaderNames.AccessControlExposeHeaders, value); 1908if (!TryGetUnknown(HeaderNames.AccessControlMaxAge, ref value)) 1917SetValueUnknown(HeaderNames.AccessControlMaxAge, value); 1925if (!TryGetUnknown(HeaderNames.Age, ref value)) 1934SetValueUnknown(HeaderNames.Age, value); 1942if (!TryGetUnknown(HeaderNames.Allow, ref value)) 1951SetValueUnknown(HeaderNames.Allow, value); 1959if (!TryGetUnknown(HeaderNames.AltSvc, ref value)) 1968SetValueUnknown(HeaderNames.AltSvc, value); 1976if (!TryGetUnknown(HeaderNames.ContentDisposition, ref value)) 1985SetValueUnknown(HeaderNames.ContentDisposition, value); 1993if (!TryGetUnknown(HeaderNames.ContentEncoding, ref value)) 2002SetValueUnknown(HeaderNames.ContentEncoding, value); 2010if (!TryGetUnknown(HeaderNames.ContentLanguage, ref value)) 2019SetValueUnknown(HeaderNames.ContentLanguage, value); 2027if (!TryGetUnknown(HeaderNames.ContentLocation, ref value)) 2036SetValueUnknown(HeaderNames.ContentLocation, value); 2044if (!TryGetUnknown(HeaderNames.ContentMD5, ref value)) 2053SetValueUnknown(HeaderNames.ContentMD5, value); 2061if (!TryGetUnknown(HeaderNames.ContentRange, ref value)) 2070SetValueUnknown(HeaderNames.ContentRange, value); 2078if (!TryGetUnknown(HeaderNames.ContentSecurityPolicy, ref value)) 2087SetValueUnknown(HeaderNames.ContentSecurityPolicy, value); 2095if (!TryGetUnknown(HeaderNames.ContentSecurityPolicyReportOnly, ref value)) 2104SetValueUnknown(HeaderNames.ContentSecurityPolicyReportOnly, value); 2112if (!TryGetUnknown(HeaderNames.ETag, ref value)) 2121SetValueUnknown(HeaderNames.ETag, value); 2129if (!TryGetUnknown(HeaderNames.Expires, ref value)) 2138SetValueUnknown(HeaderNames.Expires, value); 2146if (!TryGetUnknown(HeaderNames.GrpcMessage, ref value)) 2155SetValueUnknown(HeaderNames.GrpcMessage, value); 2163if (!TryGetUnknown(HeaderNames.GrpcStatus, ref value)) 2172SetValueUnknown(HeaderNames.GrpcStatus, value); 2180if (!TryGetUnknown(HeaderNames.LastModified, ref value)) 2189SetValueUnknown(HeaderNames.LastModified, value); 2197if (!TryGetUnknown(HeaderNames.Link, ref value)) 2206SetValueUnknown(HeaderNames.Link, value); 2214if (!TryGetUnknown(HeaderNames.Location, ref value)) 2223SetValueUnknown(HeaderNames.Location, value); 2231if (!TryGetUnknown(HeaderNames.ProxyAuthenticate, ref value)) 2240SetValueUnknown(HeaderNames.ProxyAuthenticate, value); 2248if (!TryGetUnknown(HeaderNames.ProxyConnection, ref value)) 2257SetValueUnknown(HeaderNames.ProxyConnection, value); 2265if (!TryGetUnknown(HeaderNames.RetryAfter, ref value)) 2274SetValueUnknown(HeaderNames.RetryAfter, value); 2282if (!TryGetUnknown(HeaderNames.SecWebSocketAccept, ref value)) 2291SetValueUnknown(HeaderNames.SecWebSocketAccept, value); 2299if (!TryGetUnknown(HeaderNames.SecWebSocketKey, ref value)) 2308SetValueUnknown(HeaderNames.SecWebSocketKey, value); 2316if (!TryGetUnknown(HeaderNames.SecWebSocketProtocol, ref value)) 2325SetValueUnknown(HeaderNames.SecWebSocketProtocol, value); 2333if (!TryGetUnknown(HeaderNames.SecWebSocketVersion, ref value)) 2342SetValueUnknown(HeaderNames.SecWebSocketVersion, value); 2350if (!TryGetUnknown(HeaderNames.SecWebSocketExtensions, ref value)) 2359SetValueUnknown(HeaderNames.SecWebSocketExtensions, value); 2367if (!TryGetUnknown(HeaderNames.Server, ref value)) 2376SetValueUnknown(HeaderNames.Server, value); 2384if (!TryGetUnknown(HeaderNames.SetCookie, ref value)) 2393SetValueUnknown(HeaderNames.SetCookie, value); 2401if (!TryGetUnknown(HeaderNames.StrictTransportSecurity, ref value)) 2410SetValueUnknown(HeaderNames.StrictTransportSecurity, value); 2418if (!TryGetUnknown(HeaderNames.Trailer, ref value)) 2427SetValueUnknown(HeaderNames.Trailer, value); 2435if (!TryGetUnknown(HeaderNames.Vary, ref value)) 2444SetValueUnknown(HeaderNames.Vary, value); 2452if (!TryGetUnknown(HeaderNames.WebSocketSubProtocols, ref value)) 2461SetValueUnknown(HeaderNames.WebSocketSubProtocols, value); 2469if (!TryGetUnknown(HeaderNames.WWWAuthenticate, ref value)) 2478SetValueUnknown(HeaderNames.WWWAuthenticate, value); 2486if (!TryGetUnknown(HeaderNames.XContentTypeOptions, ref value)) 2495SetValueUnknown(HeaderNames.XContentTypeOptions, value); 2503if (!TryGetUnknown(HeaderNames.XFrameOptions, ref value)) 2512SetValueUnknown(HeaderNames.XFrameOptions, value); 2520if (!TryGetUnknown(HeaderNames.XPoweredBy, ref value)) 2529SetValueUnknown(HeaderNames.XPoweredBy, value); 2537if (!TryGetUnknown(HeaderNames.XRequestedWith, ref value)) 2546SetValueUnknown(HeaderNames.XRequestedWith, value); 2554if (!TryGetUnknown(HeaderNames.XUACompatible, ref value)) 2563SetValueUnknown(HeaderNames.XUACompatible, value); 2571if (!TryGetUnknown(HeaderNames.XXSSProtection, ref value)) 2580SetValueUnknown(HeaderNames.XXSSProtection, value); 2596if (ReferenceEquals(HeaderNames.TE, key)) 2606if (HeaderNames.TE.Equals(key, StringComparison.OrdinalIgnoreCase)) 2619if (ReferenceEquals(HeaderNames.Via, key)) 2629if (HeaderNames.Via.Equals(key, StringComparison.OrdinalIgnoreCase)) 2642if (ReferenceEquals(HeaderNames.Host, key)) 2651if (ReferenceEquals(HeaderNames.Date, key)) 2660if (ReferenceEquals(HeaderNames.From, key)) 2670if (HeaderNames.Host.Equals(key, StringComparison.OrdinalIgnoreCase)) 2679if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 2688if (HeaderNames.From.Equals(key, StringComparison.OrdinalIgnoreCase)) 2710if (ReferenceEquals(HeaderNames.Range, key)) 2729if (HeaderNames.Range.Equals(key, StringComparison.OrdinalIgnoreCase)) 2742if (ReferenceEquals(HeaderNames.Accept, key)) 2751if (ReferenceEquals(HeaderNames.Cookie, key)) 2760if (ReferenceEquals(HeaderNames.Expect, key)) 2769if (ReferenceEquals(HeaderNames.Origin, key)) 2778if (ReferenceEquals(HeaderNames.Pragma, key)) 2788if (HeaderNames.Accept.Equals(key, StringComparison.OrdinalIgnoreCase)) 2797if (HeaderNames.Cookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 2806if (HeaderNames.Expect.Equals(key, StringComparison.OrdinalIgnoreCase)) 2815if (HeaderNames.Origin.Equals(key, StringComparison.OrdinalIgnoreCase)) 2824if (HeaderNames.Pragma.Equals(key, StringComparison.OrdinalIgnoreCase)) 2855if (ReferenceEquals(HeaderNames.Baggage, key)) 2864if (ReferenceEquals(HeaderNames.Referer, key)) 2873if (ReferenceEquals(HeaderNames.Upgrade, key)) 2882if (ReferenceEquals(HeaderNames.Warning, key)) 2910if (HeaderNames.Baggage.Equals(key, StringComparison.OrdinalIgnoreCase)) 2919if (HeaderNames.Referer.Equals(key, StringComparison.OrdinalIgnoreCase)) 2928if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 2937if (HeaderNames.Warning.Equals(key, StringComparison.OrdinalIgnoreCase)) 2959if (ReferenceEquals(HeaderNames.IfMatch, key)) 2968if (ReferenceEquals(HeaderNames.IfRange, key)) 2987if (HeaderNames.IfMatch.Equals(key, StringComparison.OrdinalIgnoreCase)) 2996if (HeaderNames.IfRange.Equals(key, StringComparison.OrdinalIgnoreCase)) 3018if (ReferenceEquals(HeaderNames.Translate, key)) 3037if (HeaderNames.Translate.Equals(key, StringComparison.OrdinalIgnoreCase)) 3050if (ReferenceEquals(HeaderNames.Connection, key)) 3059if (ReferenceEquals(HeaderNames.UserAgent, key)) 3077if (ReferenceEquals(HeaderNames.KeepAlive, key)) 3086if (ReferenceEquals(HeaderNames.RequestId, key)) 3095if (ReferenceEquals(HeaderNames.TraceState, key)) 3105if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 3114if (HeaderNames.UserAgent.Equals(key, StringComparison.OrdinalIgnoreCase)) 3132if (HeaderNames.KeepAlive.Equals(key, StringComparison.OrdinalIgnoreCase)) 3141if (HeaderNames.RequestId.Equals(key, StringComparison.OrdinalIgnoreCase)) 3150if (HeaderNames.TraceState.Equals(key, StringComparison.OrdinalIgnoreCase)) 3163if (ReferenceEquals(HeaderNames.TraceParent, key)) 3173if (HeaderNames.TraceParent.Equals(key, StringComparison.OrdinalIgnoreCase)) 3186if (ReferenceEquals(HeaderNames.ContentType, key)) 3195if (ReferenceEquals(HeaderNames.GrpcTimeout, key)) 3204if (ReferenceEquals(HeaderNames.MaxForwards, key)) 3214if (HeaderNames.ContentType.Equals(key, StringComparison.OrdinalIgnoreCase)) 3223if (HeaderNames.GrpcTimeout.Equals(key, StringComparison.OrdinalIgnoreCase)) 3232if (HeaderNames.MaxForwards.Equals(key, StringComparison.OrdinalIgnoreCase)) 3245if (ReferenceEquals(HeaderNames.Authorization, key)) 3254if (ReferenceEquals(HeaderNames.CacheControl, key)) 3263if (ReferenceEquals(HeaderNames.GrpcEncoding, key)) 3272if (ReferenceEquals(HeaderNames.IfNoneMatch, key)) 3282if (HeaderNames.Authorization.Equals(key, StringComparison.OrdinalIgnoreCase)) 3291if (HeaderNames.CacheControl.Equals(key, StringComparison.OrdinalIgnoreCase)) 3300if (HeaderNames.GrpcEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 3309if (HeaderNames.IfNoneMatch.Equals(key, StringComparison.OrdinalIgnoreCase)) 3322if (ReferenceEquals(HeaderNames.AcceptCharset, key)) 3331if (ReferenceEquals(HeaderNames.ContentLength, key)) 3341if (HeaderNames.AcceptCharset.Equals(key, StringComparison.OrdinalIgnoreCase)) 3350if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase)) 3363if (ReferenceEquals(HeaderNames.AcceptEncoding, key)) 3372if (ReferenceEquals(HeaderNames.AcceptLanguage, key)) 3382if (HeaderNames.AcceptEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 3391if (HeaderNames.AcceptLanguage.Equals(key, StringComparison.OrdinalIgnoreCase)) 3404if (ReferenceEquals(HeaderNames.IfModifiedSince, key)) 3413if (ReferenceEquals(HeaderNames.TransferEncoding, key)) 3423if (HeaderNames.IfModifiedSince.Equals(key, StringComparison.OrdinalIgnoreCase)) 3432if (HeaderNames.TransferEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 3445if (ReferenceEquals(HeaderNames.CorrelationContext, key)) 3454if (ReferenceEquals(HeaderNames.IfUnmodifiedSince, key)) 3463if (ReferenceEquals(HeaderNames.ProxyAuthorization, key)) 3473if (HeaderNames.CorrelationContext.Equals(key, StringComparison.OrdinalIgnoreCase)) 3482if (HeaderNames.IfUnmodifiedSince.Equals(key, StringComparison.OrdinalIgnoreCase)) 3491if (HeaderNames.ProxyAuthorization.Equals(key, StringComparison.OrdinalIgnoreCase)) 3504if (ReferenceEquals(HeaderNames.GrpcAcceptEncoding, key)) 3514if (HeaderNames.GrpcAcceptEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 3527if (ReferenceEquals(HeaderNames.UpgradeInsecureRequests, key)) 3537if (HeaderNames.UpgradeInsecureRequests.Equals(key, StringComparison.OrdinalIgnoreCase)) 3550if (ReferenceEquals(HeaderNames.AccessControlRequestMethod, key)) 3560if (HeaderNames.AccessControlRequestMethod.Equals(key, StringComparison.OrdinalIgnoreCase)) 3573if (ReferenceEquals(HeaderNames.AccessControlRequestHeaders, key)) 3583if (HeaderNames.AccessControlRequestHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 3605if (ReferenceEquals(HeaderNames.TE, key)) 3612if (HeaderNames.TE.Equals(key, StringComparison.OrdinalIgnoreCase)) 3622if (ReferenceEquals(HeaderNames.Via, key)) 3629if (HeaderNames.Via.Equals(key, StringComparison.OrdinalIgnoreCase)) 3639if (ReferenceEquals(HeaderNames.Host, key)) 3645if (ReferenceEquals(HeaderNames.Date, key)) 3651if (ReferenceEquals(HeaderNames.From, key)) 3658if (HeaderNames.Host.Equals(key, StringComparison.OrdinalIgnoreCase)) 3664if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 3670if (HeaderNames.From.Equals(key, StringComparison.OrdinalIgnoreCase)) 3686if (ReferenceEquals(HeaderNames.Range, key)) 3699if (HeaderNames.Range.Equals(key, StringComparison.OrdinalIgnoreCase)) 3709if (ReferenceEquals(HeaderNames.Accept, key)) 3715if (ReferenceEquals(HeaderNames.Cookie, key)) 3721if (ReferenceEquals(HeaderNames.Expect, key)) 3727if (ReferenceEquals(HeaderNames.Origin, key)) 3733if (ReferenceEquals(HeaderNames.Pragma, key)) 3740if (HeaderNames.Accept.Equals(key, StringComparison.OrdinalIgnoreCase)) 3746if (HeaderNames.Cookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 3752if (HeaderNames.Expect.Equals(key, StringComparison.OrdinalIgnoreCase)) 3758if (HeaderNames.Origin.Equals(key, StringComparison.OrdinalIgnoreCase)) 3764if (HeaderNames.Pragma.Equals(key, StringComparison.OrdinalIgnoreCase)) 3786if (ReferenceEquals(HeaderNames.Baggage, key)) 3792if (ReferenceEquals(HeaderNames.Referer, key)) 3798if (ReferenceEquals(HeaderNames.Upgrade, key)) 3804if (ReferenceEquals(HeaderNames.Warning, key)) 3823if (HeaderNames.Baggage.Equals(key, StringComparison.OrdinalIgnoreCase)) 3829if (HeaderNames.Referer.Equals(key, StringComparison.OrdinalIgnoreCase)) 3835if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 3841if (HeaderNames.Warning.Equals(key, StringComparison.OrdinalIgnoreCase)) 3857if (ReferenceEquals(HeaderNames.IfMatch, key)) 3863if (ReferenceEquals(HeaderNames.IfRange, key)) 3876if (HeaderNames.IfMatch.Equals(key, StringComparison.OrdinalIgnoreCase)) 3882if (HeaderNames.IfRange.Equals(key, StringComparison.OrdinalIgnoreCase)) 3898if (ReferenceEquals(HeaderNames.Translate, key)) 3911if (HeaderNames.Translate.Equals(key, StringComparison.OrdinalIgnoreCase)) 3921if (ReferenceEquals(HeaderNames.Connection, key)) 3927if (ReferenceEquals(HeaderNames.UserAgent, key)) 3939if (ReferenceEquals(HeaderNames.KeepAlive, key)) 3945if (ReferenceEquals(HeaderNames.RequestId, key)) 3951if (ReferenceEquals(HeaderNames.TraceState, key)) 3958if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 3964if (HeaderNames.UserAgent.Equals(key, StringComparison.OrdinalIgnoreCase)) 3976if (HeaderNames.KeepAlive.Equals(key, StringComparison.OrdinalIgnoreCase)) 3982if (HeaderNames.RequestId.Equals(key, StringComparison.OrdinalIgnoreCase)) 3988if (HeaderNames.TraceState.Equals(key, StringComparison.OrdinalIgnoreCase)) 3998if (ReferenceEquals(HeaderNames.TraceParent, key)) 4005if (HeaderNames.TraceParent.Equals(key, StringComparison.OrdinalIgnoreCase)) 4015if (ReferenceEquals(HeaderNames.ContentType, key)) 4021if (ReferenceEquals(HeaderNames.GrpcTimeout, key)) 4027if (ReferenceEquals(HeaderNames.MaxForwards, key)) 4034if (HeaderNames.ContentType.Equals(key, StringComparison.OrdinalIgnoreCase)) 4040if (HeaderNames.GrpcTimeout.Equals(key, StringComparison.OrdinalIgnoreCase)) 4046if (HeaderNames.MaxForwards.Equals(key, StringComparison.OrdinalIgnoreCase)) 4056if (ReferenceEquals(HeaderNames.Authorization, key)) 4062if (ReferenceEquals(HeaderNames.CacheControl, key)) 4068if (ReferenceEquals(HeaderNames.GrpcEncoding, key)) 4074if (ReferenceEquals(HeaderNames.IfNoneMatch, key)) 4081if (HeaderNames.Authorization.Equals(key, StringComparison.OrdinalIgnoreCase)) 4087if (HeaderNames.CacheControl.Equals(key, StringComparison.OrdinalIgnoreCase)) 4093if (HeaderNames.GrpcEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 4099if (HeaderNames.IfNoneMatch.Equals(key, StringComparison.OrdinalIgnoreCase)) 4109if (ReferenceEquals(HeaderNames.AcceptCharset, key)) 4115if (ReferenceEquals(HeaderNames.ContentLength, key)) 4121if (HeaderNames.AcceptCharset.Equals(key, StringComparison.OrdinalIgnoreCase)) 4127if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase)) 4136if (ReferenceEquals(HeaderNames.AcceptEncoding, key)) 4142if (ReferenceEquals(HeaderNames.AcceptLanguage, key)) 4149if (HeaderNames.AcceptEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 4155if (HeaderNames.AcceptLanguage.Equals(key, StringComparison.OrdinalIgnoreCase)) 4165if (ReferenceEquals(HeaderNames.IfModifiedSince, key)) 4171if (ReferenceEquals(HeaderNames.TransferEncoding, key)) 4178if (HeaderNames.IfModifiedSince.Equals(key, StringComparison.OrdinalIgnoreCase)) 4184if (HeaderNames.TransferEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 4194if (ReferenceEquals(HeaderNames.CorrelationContext, key)) 4200if (ReferenceEquals(HeaderNames.IfUnmodifiedSince, key)) 4206if (ReferenceEquals(HeaderNames.ProxyAuthorization, key)) 4213if (HeaderNames.CorrelationContext.Equals(key, StringComparison.OrdinalIgnoreCase)) 4219if (HeaderNames.IfUnmodifiedSince.Equals(key, StringComparison.OrdinalIgnoreCase)) 4225if (HeaderNames.ProxyAuthorization.Equals(key, StringComparison.OrdinalIgnoreCase)) 4235if (ReferenceEquals(HeaderNames.GrpcAcceptEncoding, key)) 4242if (HeaderNames.GrpcAcceptEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 4252if (ReferenceEquals(HeaderNames.UpgradeInsecureRequests, key)) 4259if (HeaderNames.UpgradeInsecureRequests.Equals(key, StringComparison.OrdinalIgnoreCase)) 4269if (ReferenceEquals(HeaderNames.AccessControlRequestMethod, key)) 4276if (HeaderNames.AccessControlRequestMethod.Equals(key, StringComparison.OrdinalIgnoreCase)) 4286if (ReferenceEquals(HeaderNames.AccessControlRequestHeaders, key)) 4293if (HeaderNames.AccessControlRequestHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 4312if (ReferenceEquals(HeaderNames.TE, key)) 4323if (HeaderNames.TE.Equals(key, StringComparison.OrdinalIgnoreCase)) 4337if (ReferenceEquals(HeaderNames.Via, key)) 4348if (HeaderNames.Via.Equals(key, StringComparison.OrdinalIgnoreCase)) 4362if (ReferenceEquals(HeaderNames.Host, key)) 4372if (ReferenceEquals(HeaderNames.Date, key)) 4382if (ReferenceEquals(HeaderNames.From, key)) 4393if (HeaderNames.Host.Equals(key, StringComparison.OrdinalIgnoreCase)) 4403if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 4413if (HeaderNames.From.Equals(key, StringComparison.OrdinalIgnoreCase)) 4437if (ReferenceEquals(HeaderNames.Range, key)) 4458if (HeaderNames.Range.Equals(key, StringComparison.OrdinalIgnoreCase)) 4472if (ReferenceEquals(HeaderNames.Accept, key)) 4482if (ReferenceEquals(HeaderNames.Cookie, key)) 4492if (ReferenceEquals(HeaderNames.Expect, key)) 4502if (ReferenceEquals(HeaderNames.Origin, key)) 4512if (ReferenceEquals(HeaderNames.Pragma, key)) 4523if (HeaderNames.Accept.Equals(key, StringComparison.OrdinalIgnoreCase)) 4533if (HeaderNames.Cookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 4543if (HeaderNames.Expect.Equals(key, StringComparison.OrdinalIgnoreCase)) 4553if (HeaderNames.Origin.Equals(key, StringComparison.OrdinalIgnoreCase)) 4563if (HeaderNames.Pragma.Equals(key, StringComparison.OrdinalIgnoreCase)) 4597if (ReferenceEquals(HeaderNames.Baggage, key)) 4607if (ReferenceEquals(HeaderNames.Referer, key)) 4617if (ReferenceEquals(HeaderNames.Upgrade, key)) 4627if (ReferenceEquals(HeaderNames.Warning, key)) 4658if (HeaderNames.Baggage.Equals(key, StringComparison.OrdinalIgnoreCase)) 4668if (HeaderNames.Referer.Equals(key, StringComparison.OrdinalIgnoreCase)) 4678if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 4688if (HeaderNames.Warning.Equals(key, StringComparison.OrdinalIgnoreCase)) 4712if (ReferenceEquals(HeaderNames.IfMatch, key)) 4722if (ReferenceEquals(HeaderNames.IfRange, key)) 4743if (HeaderNames.IfMatch.Equals(key, StringComparison.OrdinalIgnoreCase)) 4753if (HeaderNames.IfRange.Equals(key, StringComparison.OrdinalIgnoreCase)) 4777if (ReferenceEquals(HeaderNames.Translate, key)) 4798if (HeaderNames.Translate.Equals(key, StringComparison.OrdinalIgnoreCase)) 4812if (ReferenceEquals(HeaderNames.Connection, key)) 4822if (ReferenceEquals(HeaderNames.UserAgent, key)) 4842if (ReferenceEquals(HeaderNames.KeepAlive, key)) 4852if (ReferenceEquals(HeaderNames.RequestId, key)) 4862if (ReferenceEquals(HeaderNames.TraceState, key)) 4873if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 4883if (HeaderNames.UserAgent.Equals(key, StringComparison.OrdinalIgnoreCase)) 4903if (HeaderNames.KeepAlive.Equals(key, StringComparison.OrdinalIgnoreCase)) 4913if (HeaderNames.RequestId.Equals(key, StringComparison.OrdinalIgnoreCase)) 4923if (HeaderNames.TraceState.Equals(key, StringComparison.OrdinalIgnoreCase)) 4937if (ReferenceEquals(HeaderNames.TraceParent, key)) 4948if (HeaderNames.TraceParent.Equals(key, StringComparison.OrdinalIgnoreCase)) 4962if (ReferenceEquals(HeaderNames.ContentType, key)) 4972if (ReferenceEquals(HeaderNames.GrpcTimeout, key)) 4982if (ReferenceEquals(HeaderNames.MaxForwards, key)) 4993if (HeaderNames.ContentType.Equals(key, StringComparison.OrdinalIgnoreCase)) 5003if (HeaderNames.GrpcTimeout.Equals(key, StringComparison.OrdinalIgnoreCase)) 5013if (HeaderNames.MaxForwards.Equals(key, StringComparison.OrdinalIgnoreCase)) 5027if (ReferenceEquals(HeaderNames.Authorization, key)) 5037if (ReferenceEquals(HeaderNames.CacheControl, key)) 5047if (ReferenceEquals(HeaderNames.GrpcEncoding, key)) 5057if (ReferenceEquals(HeaderNames.IfNoneMatch, key)) 5068if (HeaderNames.Authorization.Equals(key, StringComparison.OrdinalIgnoreCase)) 5078if (HeaderNames.CacheControl.Equals(key, StringComparison.OrdinalIgnoreCase)) 5088if (HeaderNames.GrpcEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 5098if (HeaderNames.IfNoneMatch.Equals(key, StringComparison.OrdinalIgnoreCase)) 5112if (ReferenceEquals(HeaderNames.AcceptCharset, key)) 5122if (ReferenceEquals(HeaderNames.ContentLength, key)) 5132if (HeaderNames.AcceptCharset.Equals(key, StringComparison.OrdinalIgnoreCase)) 5142if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase)) 5155if (ReferenceEquals(HeaderNames.AcceptEncoding, key)) 5165if (ReferenceEquals(HeaderNames.AcceptLanguage, key)) 5176if (HeaderNames.AcceptEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 5186if (HeaderNames.AcceptLanguage.Equals(key, StringComparison.OrdinalIgnoreCase)) 5200if (ReferenceEquals(HeaderNames.IfModifiedSince, key)) 5210if (ReferenceEquals(HeaderNames.TransferEncoding, key)) 5221if (HeaderNames.IfModifiedSince.Equals(key, StringComparison.OrdinalIgnoreCase)) 5231if (HeaderNames.TransferEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 5245if (ReferenceEquals(HeaderNames.CorrelationContext, key)) 5255if (ReferenceEquals(HeaderNames.IfUnmodifiedSince, key)) 5265if (ReferenceEquals(HeaderNames.ProxyAuthorization, key)) 5276if (HeaderNames.CorrelationContext.Equals(key, StringComparison.OrdinalIgnoreCase)) 5286if (HeaderNames.IfUnmodifiedSince.Equals(key, StringComparison.OrdinalIgnoreCase)) 5296if (HeaderNames.ProxyAuthorization.Equals(key, StringComparison.OrdinalIgnoreCase)) 5310if (ReferenceEquals(HeaderNames.GrpcAcceptEncoding, key)) 5321if (HeaderNames.GrpcAcceptEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 5335if (ReferenceEquals(HeaderNames.UpgradeInsecureRequests, key)) 5346if (HeaderNames.UpgradeInsecureRequests.Equals(key, StringComparison.OrdinalIgnoreCase)) 5360if (ReferenceEquals(HeaderNames.AccessControlRequestMethod, key)) 5371if (HeaderNames.AccessControlRequestMethod.Equals(key, StringComparison.OrdinalIgnoreCase)) 5385if (ReferenceEquals(HeaderNames.AccessControlRequestHeaders, key)) 5396if (HeaderNames.AccessControlRequestHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 5419if (ReferenceEquals(HeaderNames.TE, key)) 5430if (HeaderNames.TE.Equals(key, StringComparison.OrdinalIgnoreCase)) 5444if (ReferenceEquals(HeaderNames.Via, key)) 5455if (HeaderNames.Via.Equals(key, StringComparison.OrdinalIgnoreCase)) 5469if (ReferenceEquals(HeaderNames.Host, key)) 5479if (ReferenceEquals(HeaderNames.Date, key)) 5489if (ReferenceEquals(HeaderNames.From, key)) 5500if (HeaderNames.Host.Equals(key, StringComparison.OrdinalIgnoreCase)) 5510if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 5520if (HeaderNames.From.Equals(key, StringComparison.OrdinalIgnoreCase)) 5544if (ReferenceEquals(HeaderNames.Range, key)) 5565if (HeaderNames.Range.Equals(key, StringComparison.OrdinalIgnoreCase)) 5579if (ReferenceEquals(HeaderNames.Accept, key)) 5589if (ReferenceEquals(HeaderNames.Cookie, key)) 5599if (ReferenceEquals(HeaderNames.Expect, key)) 5609if (ReferenceEquals(HeaderNames.Origin, key)) 5619if (ReferenceEquals(HeaderNames.Pragma, key)) 5630if (HeaderNames.Accept.Equals(key, StringComparison.OrdinalIgnoreCase)) 5640if (HeaderNames.Cookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 5650if (HeaderNames.Expect.Equals(key, StringComparison.OrdinalIgnoreCase)) 5660if (HeaderNames.Origin.Equals(key, StringComparison.OrdinalIgnoreCase)) 5670if (HeaderNames.Pragma.Equals(key, StringComparison.OrdinalIgnoreCase)) 5704if (ReferenceEquals(HeaderNames.Baggage, key)) 5714if (ReferenceEquals(HeaderNames.Referer, key)) 5724if (ReferenceEquals(HeaderNames.Upgrade, key)) 5734if (ReferenceEquals(HeaderNames.Warning, key)) 5765if (HeaderNames.Baggage.Equals(key, StringComparison.OrdinalIgnoreCase)) 5775if (HeaderNames.Referer.Equals(key, StringComparison.OrdinalIgnoreCase)) 5785if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 5795if (HeaderNames.Warning.Equals(key, StringComparison.OrdinalIgnoreCase)) 5819if (ReferenceEquals(HeaderNames.IfMatch, key)) 5829if (ReferenceEquals(HeaderNames.IfRange, key)) 5850if (HeaderNames.IfMatch.Equals(key, StringComparison.OrdinalIgnoreCase)) 5860if (HeaderNames.IfRange.Equals(key, StringComparison.OrdinalIgnoreCase)) 5884if (ReferenceEquals(HeaderNames.Translate, key)) 5905if (HeaderNames.Translate.Equals(key, StringComparison.OrdinalIgnoreCase)) 5919if (ReferenceEquals(HeaderNames.Connection, key)) 5929if (ReferenceEquals(HeaderNames.UserAgent, key)) 5949if (ReferenceEquals(HeaderNames.KeepAlive, key)) 5959if (ReferenceEquals(HeaderNames.RequestId, key)) 5969if (ReferenceEquals(HeaderNames.TraceState, key)) 5980if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 5990if (HeaderNames.UserAgent.Equals(key, StringComparison.OrdinalIgnoreCase)) 6010if (HeaderNames.KeepAlive.Equals(key, StringComparison.OrdinalIgnoreCase)) 6020if (HeaderNames.RequestId.Equals(key, StringComparison.OrdinalIgnoreCase)) 6030if (HeaderNames.TraceState.Equals(key, StringComparison.OrdinalIgnoreCase)) 6044if (ReferenceEquals(HeaderNames.TraceParent, key)) 6055if (HeaderNames.TraceParent.Equals(key, StringComparison.OrdinalIgnoreCase)) 6069if (ReferenceEquals(HeaderNames.ContentType, key)) 6079if (ReferenceEquals(HeaderNames.GrpcTimeout, key)) 6089if (ReferenceEquals(HeaderNames.MaxForwards, key)) 6100if (HeaderNames.ContentType.Equals(key, StringComparison.OrdinalIgnoreCase)) 6110if (HeaderNames.GrpcTimeout.Equals(key, StringComparison.OrdinalIgnoreCase)) 6120if (HeaderNames.MaxForwards.Equals(key, StringComparison.OrdinalIgnoreCase)) 6134if (ReferenceEquals(HeaderNames.Authorization, key)) 6144if (ReferenceEquals(HeaderNames.CacheControl, key)) 6154if (ReferenceEquals(HeaderNames.GrpcEncoding, key)) 6164if (ReferenceEquals(HeaderNames.IfNoneMatch, key)) 6175if (HeaderNames.Authorization.Equals(key, StringComparison.OrdinalIgnoreCase)) 6185if (HeaderNames.CacheControl.Equals(key, StringComparison.OrdinalIgnoreCase)) 6195if (HeaderNames.GrpcEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 6205if (HeaderNames.IfNoneMatch.Equals(key, StringComparison.OrdinalIgnoreCase)) 6219if (ReferenceEquals(HeaderNames.AcceptCharset, key)) 6229if (ReferenceEquals(HeaderNames.ContentLength, key)) 6239if (HeaderNames.AcceptCharset.Equals(key, StringComparison.OrdinalIgnoreCase)) 6249if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase)) 6262if (ReferenceEquals(HeaderNames.AcceptEncoding, key)) 6272if (ReferenceEquals(HeaderNames.AcceptLanguage, key)) 6283if (HeaderNames.AcceptEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 6293if (HeaderNames.AcceptLanguage.Equals(key, StringComparison.OrdinalIgnoreCase)) 6307if (ReferenceEquals(HeaderNames.IfModifiedSince, key)) 6317if (ReferenceEquals(HeaderNames.TransferEncoding, key)) 6328if (HeaderNames.IfModifiedSince.Equals(key, StringComparison.OrdinalIgnoreCase)) 6338if (HeaderNames.TransferEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 6352if (ReferenceEquals(HeaderNames.CorrelationContext, key)) 6362if (ReferenceEquals(HeaderNames.IfUnmodifiedSince, key)) 6372if (ReferenceEquals(HeaderNames.ProxyAuthorization, key)) 6383if (HeaderNames.CorrelationContext.Equals(key, StringComparison.OrdinalIgnoreCase)) 6393if (HeaderNames.IfUnmodifiedSince.Equals(key, StringComparison.OrdinalIgnoreCase)) 6403if (HeaderNames.ProxyAuthorization.Equals(key, StringComparison.OrdinalIgnoreCase)) 6417if (ReferenceEquals(HeaderNames.GrpcAcceptEncoding, key)) 6428if (HeaderNames.GrpcAcceptEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 6442if (ReferenceEquals(HeaderNames.UpgradeInsecureRequests, key)) 6453if (HeaderNames.UpgradeInsecureRequests.Equals(key, StringComparison.OrdinalIgnoreCase)) 6467if (ReferenceEquals(HeaderNames.AccessControlRequestMethod, key)) 6478if (HeaderNames.AccessControlRequestMethod.Equals(key, StringComparison.OrdinalIgnoreCase)) 6492if (ReferenceEquals(HeaderNames.AccessControlRequestHeaders, key)) 6503if (HeaderNames.AccessControlRequestHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 7028array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Accept, _headers._Accept); 7037array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Connection, _headers._Connection); 7046array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Host, _headers._Host); 7055array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.UserAgent, _headers._UserAgent); 7109array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AcceptCharset, _headers._AcceptCharset); 7118array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AcceptEncoding, _headers._AcceptEncoding); 7127array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AcceptLanguage, _headers._AcceptLanguage); 7136array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlRequestHeaders, _headers._AccessControlRequestHeaders); 7145array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlRequestMethod, _headers._AccessControlRequestMethod); 7163array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Authorization, _headers._Authorization); 7172array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Baggage, _headers._Baggage); 7181array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.CacheControl, _headers._CacheControl); 7190array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentType, _headers._ContentType); 7199array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Cookie, _headers._Cookie); 7208array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.CorrelationContext, _headers._CorrelationContext); 7217array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Date, _headers._Date); 7226array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Expect, _headers._Expect); 7235array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.From, _headers._From); 7244array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.GrpcAcceptEncoding, _headers._GrpcAcceptEncoding); 7253array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.GrpcEncoding, _headers._GrpcEncoding); 7262array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.GrpcTimeout, _headers._GrpcTimeout); 7271array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.IfMatch, _headers._IfMatch); 7280array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.IfModifiedSince, _headers._IfModifiedSince); 7289array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.IfNoneMatch, _headers._IfNoneMatch); 7298array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.IfRange, _headers._IfRange); 7307array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.IfUnmodifiedSince, _headers._IfUnmodifiedSince); 7316array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.KeepAlive, _headers._KeepAlive); 7325array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.MaxForwards, _headers._MaxForwards); 7334array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Origin, _headers._Origin); 7343array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Pragma, _headers._Pragma); 7352array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ProxyAuthorization, _headers._ProxyAuthorization); 7361array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Range, _headers._Range); 7370array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Referer, _headers._Referer); 7379array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.RequestId, _headers._RequestId); 7388array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.TE, _headers._TE); 7397array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.TraceParent, _headers._TraceParent); 7406array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.TraceState, _headers._TraceState); 7415array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.TransferEncoding, _headers._TransferEncoding); 7424array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Translate, _headers._Translate); 7433array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, _headers._Upgrade); 7442array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.UpgradeInsecureRequests, _headers._UpgradeInsecureRequests); 7451array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Via, _headers._Via); 7460array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Warning, _headers._Warning); 7469array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value)); 7529nameStr = HeaderNames.TE; 7537nameStr = HeaderNames.Via; 7546nameStr = HeaderNames.Host; 7552nameStr = HeaderNames.Date; 7558nameStr = HeaderNames.From; 7572nameStr = HeaderNames.Range; 7581nameStr = HeaderNames.Accept; 7587nameStr = HeaderNames.Cookie; 7593nameStr = HeaderNames.Expect; 7599nameStr = HeaderNames.Origin; 7605nameStr = HeaderNames.Pragma; 7625nameStr = HeaderNames.Baggage; 7631nameStr = HeaderNames.Referer; 7637nameStr = HeaderNames.Upgrade; 7643nameStr = HeaderNames.Warning; 7657nameStr = HeaderNames.IfMatch; 7663nameStr = HeaderNames.IfRange; 7677nameStr = HeaderNames.Translate; 7685nameStr = HeaderNames.Connection; 7691nameStr = HeaderNames.UserAgent; 7703nameStr = HeaderNames.KeepAlive; 7709nameStr = HeaderNames.RequestId; 7715nameStr = HeaderNames.TraceState; 7723nameStr = HeaderNames.TraceParent; 7731nameStr = HeaderNames.ContentType; 7737nameStr = HeaderNames.GrpcTimeout; 7743nameStr = HeaderNames.MaxForwards; 7751nameStr = HeaderNames.Authorization; 7757nameStr = HeaderNames.CacheControl; 7763nameStr = HeaderNames.GrpcEncoding; 7769nameStr = HeaderNames.IfNoneMatch; 7777nameStr = HeaderNames.AcceptCharset; 7782? null : EncodingSelector(HeaderNames.ContentLength); 7800nameStr = HeaderNames.AcceptEncoding; 7806nameStr = HeaderNames.AcceptLanguage; 7814nameStr = HeaderNames.IfModifiedSince; 7820nameStr = HeaderNames.TransferEncoding; 7828nameStr = HeaderNames.CorrelationContext; 7834nameStr = HeaderNames.IfUnmodifiedSince; 7840nameStr = HeaderNames.ProxyAuthorization; 7848nameStr = HeaderNames.GrpcAcceptEncoding; 7856nameStr = HeaderNames.UpgradeInsecureRequests; 7864nameStr = HeaderNames.AccessControlRequestMethod; 7872nameStr = HeaderNames.AccessControlRequestHeaders; 7962nameStr = HeaderNames.AcceptCharset; 7967nameStr = HeaderNames.AcceptEncoding; 7972nameStr = HeaderNames.AcceptLanguage; 7977nameStr = HeaderNames.Accept; 7982nameStr = HeaderNames.Authorization; 7987nameStr = HeaderNames.CacheControl; 7991? null : EncodingSelector(HeaderNames.ContentLength); 8004nameStr = HeaderNames.ContentType; 8009nameStr = HeaderNames.Cookie; 8014nameStr = HeaderNames.Date; 8019nameStr = HeaderNames.Expect; 8024nameStr = HeaderNames.From; 8029nameStr = HeaderNames.Host; 8034nameStr = HeaderNames.IfMatch; 8039nameStr = HeaderNames.IfModifiedSince; 8044nameStr = HeaderNames.IfNoneMatch; 8049nameStr = HeaderNames.IfRange; 8054nameStr = HeaderNames.IfUnmodifiedSince; 8059nameStr = HeaderNames.MaxForwards; 8064nameStr = HeaderNames.ProxyAuthorization; 8069nameStr = HeaderNames.Range; 8074nameStr = HeaderNames.Referer; 8079nameStr = HeaderNames.TransferEncoding; 8084nameStr = HeaderNames.UserAgent; 8089nameStr = HeaderNames.Via; 8160? null : EncodingSelector(HeaderNames.ContentLength); 8173nameStr = HeaderNames.Cookie; 8178nameStr = HeaderNames.Date; 8183nameStr = HeaderNames.IfModifiedSince; 8188nameStr = HeaderNames.IfNoneMatch; 8193nameStr = HeaderNames.Referer; 8216nameStr = HeaderNames.Accept; 8221nameStr = HeaderNames.AcceptEncoding; 8231nameStr = HeaderNames.CacheControl; 8246nameStr = HeaderNames.ContentType; 8251nameStr = HeaderNames.Range; 8256nameStr = HeaderNames.AcceptLanguage; 8261nameStr = HeaderNames.AccessControlRequestHeaders; 8267nameStr = HeaderNames.AccessControlRequestMethod; 8272nameStr = HeaderNames.Authorization; 8277nameStr = HeaderNames.IfRange; 8282nameStr = HeaderNames.Origin; 8287nameStr = HeaderNames.UpgradeInsecureRequests; 8292nameStr = HeaderNames.UserAgent; 8404_current = new KeyValuePair<string, StringValues>(HeaderNames.Accept, _collection._headers._Accept); 8409_current = new KeyValuePair<string, StringValues>(HeaderNames.Connection, _collection._headers._Connection); 8414_current = new KeyValuePair<string, StringValues>(HeaderNames.Host, _collection._headers._Host); 8419_current = new KeyValuePair<string, StringValues>(HeaderNames.UserAgent, _collection._headers._UserAgent); 8449_current = new KeyValuePair<string, StringValues>(HeaderNames.AcceptCharset, _collection._headers._AcceptCharset); 8454_current = new KeyValuePair<string, StringValues>(HeaderNames.AcceptEncoding, _collection._headers._AcceptEncoding); 8459_current = new KeyValuePair<string, StringValues>(HeaderNames.AcceptLanguage, _collection._headers._AcceptLanguage); 8464_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlRequestHeaders, _collection._headers._AccessControlRequestHeaders); 8469_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlRequestMethod, _collection._headers._AccessControlRequestMethod); 8479_current = new KeyValuePair<string, StringValues>(HeaderNames.Authorization, _collection._headers._Authorization); 8484_current = new KeyValuePair<string, StringValues>(HeaderNames.Baggage, _collection._headers._Baggage); 8489_current = new KeyValuePair<string, StringValues>(HeaderNames.CacheControl, _collection._headers._CacheControl); 8494_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentType, _collection._headers._ContentType); 8499_current = new KeyValuePair<string, StringValues>(HeaderNames.Cookie, _collection._headers._Cookie); 8504_current = new KeyValuePair<string, StringValues>(HeaderNames.CorrelationContext, _collection._headers._CorrelationContext); 8509_current = new KeyValuePair<string, StringValues>(HeaderNames.Date, _collection._headers._Date); 8514_current = new KeyValuePair<string, StringValues>(HeaderNames.Expect, _collection._headers._Expect); 8519_current = new KeyValuePair<string, StringValues>(HeaderNames.From, _collection._headers._From); 8524_current = new KeyValuePair<string, StringValues>(HeaderNames.GrpcAcceptEncoding, _collection._headers._GrpcAcceptEncoding); 8529_current = new KeyValuePair<string, StringValues>(HeaderNames.GrpcEncoding, _collection._headers._GrpcEncoding); 8534_current = new KeyValuePair<string, StringValues>(HeaderNames.GrpcTimeout, _collection._headers._GrpcTimeout); 8539_current = new KeyValuePair<string, StringValues>(HeaderNames.IfMatch, _collection._headers._IfMatch); 8544_current = new KeyValuePair<string, StringValues>(HeaderNames.IfModifiedSince, _collection._headers._IfModifiedSince); 8549_current = new KeyValuePair<string, StringValues>(HeaderNames.IfNoneMatch, _collection._headers._IfNoneMatch); 8554_current = new KeyValuePair<string, StringValues>(HeaderNames.IfRange, _collection._headers._IfRange); 8559_current = new KeyValuePair<string, StringValues>(HeaderNames.IfUnmodifiedSince, _collection._headers._IfUnmodifiedSince); 8564_current = new KeyValuePair<string, StringValues>(HeaderNames.KeepAlive, _collection._headers._KeepAlive); 8569_current = new KeyValuePair<string, StringValues>(HeaderNames.MaxForwards, _collection._headers._MaxForwards); 8574_current = new KeyValuePair<string, StringValues>(HeaderNames.Origin, _collection._headers._Origin); 8579_current = new KeyValuePair<string, StringValues>(HeaderNames.Pragma, _collection._headers._Pragma); 8584_current = new KeyValuePair<string, StringValues>(HeaderNames.ProxyAuthorization, _collection._headers._ProxyAuthorization); 8589_current = new KeyValuePair<string, StringValues>(HeaderNames.Range, _collection._headers._Range); 8594_current = new KeyValuePair<string, StringValues>(HeaderNames.Referer, _collection._headers._Referer); 8599_current = new KeyValuePair<string, StringValues>(HeaderNames.RequestId, _collection._headers._RequestId); 8604_current = new KeyValuePair<string, StringValues>(HeaderNames.TE, _collection._headers._TE); 8609_current = new KeyValuePair<string, StringValues>(HeaderNames.TraceParent, _collection._headers._TraceParent); 8614_current = new KeyValuePair<string, StringValues>(HeaderNames.TraceState, _collection._headers._TraceState); 8619_current = new KeyValuePair<string, StringValues>(HeaderNames.TransferEncoding, _collection._headers._TransferEncoding); 8624_current = new KeyValuePair<string, StringValues>(HeaderNames.Translate, _collection._headers._Translate); 8629_current = new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, _collection._headers._Upgrade); 8634_current = new KeyValuePair<string, StringValues>(HeaderNames.UpgradeInsecureRequests, _collection._headers._UpgradeInsecureRequests); 8639_current = new KeyValuePair<string, StringValues>(HeaderNames.Via, _collection._headers._Via); 8644_current = new KeyValuePair<string, StringValues>(HeaderNames.Warning, _collection._headers._Warning); 8649_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_collection._contentLength.GetValueOrDefault())); 8831ValidateHeaderValueCharacters(HeaderNames.Connection, value, EncodingSelector); 8861ValidateHeaderValueCharacters(HeaderNames.ContentType, value, EncodingSelector); 8890ValidateHeaderValueCharacters(HeaderNames.Date, value, EncodingSelector); 8920ValidateHeaderValueCharacters(HeaderNames.Server, value, EncodingSelector); 8950ValidateHeaderValueCharacters(HeaderNames.AcceptRanges, value, EncodingSelector); 8979ValidateHeaderValueCharacters(HeaderNames.AccessControlAllowCredentials, value, EncodingSelector); 9008ValidateHeaderValueCharacters(HeaderNames.AccessControlAllowHeaders, value, EncodingSelector); 9037ValidateHeaderValueCharacters(HeaderNames.AccessControlAllowMethods, value, EncodingSelector); 9066ValidateHeaderValueCharacters(HeaderNames.AccessControlAllowOrigin, value, EncodingSelector); 9095ValidateHeaderValueCharacters(HeaderNames.AccessControlExposeHeaders, value, EncodingSelector); 9124ValidateHeaderValueCharacters(HeaderNames.AccessControlMaxAge, value, EncodingSelector); 9153ValidateHeaderValueCharacters(HeaderNames.Age, value, EncodingSelector); 9182ValidateHeaderValueCharacters(HeaderNames.Allow, value, EncodingSelector); 9211ValidateHeaderValueCharacters(HeaderNames.AltSvc, value, EncodingSelector); 9241ValidateHeaderValueCharacters(HeaderNames.CacheControl, value, EncodingSelector); 9270ValidateHeaderValueCharacters(HeaderNames.ContentEncoding, value, EncodingSelector); 9299ValidateHeaderValueCharacters(HeaderNames.ContentLanguage, value, EncodingSelector); 9328ValidateHeaderValueCharacters(HeaderNames.ContentLocation, value, EncodingSelector); 9357ValidateHeaderValueCharacters(HeaderNames.ContentMD5, value, EncodingSelector); 9386ValidateHeaderValueCharacters(HeaderNames.ContentRange, value, EncodingSelector); 9415ValidateHeaderValueCharacters(HeaderNames.ETag, value, EncodingSelector); 9444ValidateHeaderValueCharacters(HeaderNames.Expires, value, EncodingSelector); 9473ValidateHeaderValueCharacters(HeaderNames.GrpcEncoding, value, EncodingSelector); 9502ValidateHeaderValueCharacters(HeaderNames.KeepAlive, value, EncodingSelector); 9531ValidateHeaderValueCharacters(HeaderNames.LastModified, value, EncodingSelector); 9560ValidateHeaderValueCharacters(HeaderNames.Location, value, EncodingSelector); 9589ValidateHeaderValueCharacters(HeaderNames.Pragma, value, EncodingSelector); 9618ValidateHeaderValueCharacters(HeaderNames.ProxyAuthenticate, value, EncodingSelector); 9647ValidateHeaderValueCharacters(HeaderNames.ProxyConnection, value, EncodingSelector); 9676ValidateHeaderValueCharacters(HeaderNames.RetryAfter, value, EncodingSelector); 9705ValidateHeaderValueCharacters(HeaderNames.SetCookie, value, EncodingSelector); 9734ValidateHeaderValueCharacters(HeaderNames.Trailer, value, EncodingSelector); 9763ValidateHeaderValueCharacters(HeaderNames.TransferEncoding, value, EncodingSelector); 9793ValidateHeaderValueCharacters(HeaderNames.Upgrade, value, EncodingSelector); 9822ValidateHeaderValueCharacters(HeaderNames.Vary, value, EncodingSelector); 9851ValidateHeaderValueCharacters(HeaderNames.Via, value, EncodingSelector); 9880ValidateHeaderValueCharacters(HeaderNames.Warning, value, EncodingSelector); 9909ValidateHeaderValueCharacters(HeaderNames.WWWAuthenticate, value, EncodingSelector); 9926if (!TryGetUnknown(HeaderNames.Accept, ref value)) 9935ValidateHeaderValueCharacters(HeaderNames.Accept, value, EncodingSelector); 9936SetValueUnknown(HeaderNames.Accept, value); 9944if (!TryGetUnknown(HeaderNames.AcceptCharset, ref value)) 9953ValidateHeaderValueCharacters(HeaderNames.AcceptCharset, value, EncodingSelector); 9954SetValueUnknown(HeaderNames.AcceptCharset, value); 9962if (!TryGetUnknown(HeaderNames.AcceptEncoding, ref value)) 9971ValidateHeaderValueCharacters(HeaderNames.AcceptEncoding, value, EncodingSelector); 9972SetValueUnknown(HeaderNames.AcceptEncoding, value); 9980if (!TryGetUnknown(HeaderNames.AcceptLanguage, ref value)) 9989ValidateHeaderValueCharacters(HeaderNames.AcceptLanguage, value, EncodingSelector); 9990SetValueUnknown(HeaderNames.AcceptLanguage, value); 9998if (!TryGetUnknown(HeaderNames.AccessControlRequestHeaders, ref value)) 10007ValidateHeaderValueCharacters(HeaderNames.AccessControlRequestHeaders, value, EncodingSelector); 10008SetValueUnknown(HeaderNames.AccessControlRequestHeaders, value); 10016if (!TryGetUnknown(HeaderNames.AccessControlRequestMethod, ref value)) 10025ValidateHeaderValueCharacters(HeaderNames.AccessControlRequestMethod, value, EncodingSelector); 10026SetValueUnknown(HeaderNames.AccessControlRequestMethod, value); 10034if (!TryGetUnknown(HeaderNames.Authorization, ref value)) 10043ValidateHeaderValueCharacters(HeaderNames.Authorization, value, EncodingSelector); 10044SetValueUnknown(HeaderNames.Authorization, value); 10052if (!TryGetUnknown(HeaderNames.Baggage, ref value)) 10061ValidateHeaderValueCharacters(HeaderNames.Baggage, value, EncodingSelector); 10062SetValueUnknown(HeaderNames.Baggage, value); 10070if (!TryGetUnknown(HeaderNames.ContentDisposition, ref value)) 10079ValidateHeaderValueCharacters(HeaderNames.ContentDisposition, value, EncodingSelector); 10080SetValueUnknown(HeaderNames.ContentDisposition, value); 10088if (!TryGetUnknown(HeaderNames.ContentSecurityPolicy, ref value)) 10097ValidateHeaderValueCharacters(HeaderNames.ContentSecurityPolicy, value, EncodingSelector); 10098SetValueUnknown(HeaderNames.ContentSecurityPolicy, value); 10106if (!TryGetUnknown(HeaderNames.ContentSecurityPolicyReportOnly, ref value)) 10115ValidateHeaderValueCharacters(HeaderNames.ContentSecurityPolicyReportOnly, value, EncodingSelector); 10116SetValueUnknown(HeaderNames.ContentSecurityPolicyReportOnly, value); 10124if (!TryGetUnknown(HeaderNames.CorrelationContext, ref value)) 10133ValidateHeaderValueCharacters(HeaderNames.CorrelationContext, value, EncodingSelector); 10134SetValueUnknown(HeaderNames.CorrelationContext, value); 10142if (!TryGetUnknown(HeaderNames.Cookie, ref value)) 10151ValidateHeaderValueCharacters(HeaderNames.Cookie, value, EncodingSelector); 10152SetValueUnknown(HeaderNames.Cookie, value); 10160if (!TryGetUnknown(HeaderNames.Expect, ref value)) 10169ValidateHeaderValueCharacters(HeaderNames.Expect, value, EncodingSelector); 10170SetValueUnknown(HeaderNames.Expect, value); 10178if (!TryGetUnknown(HeaderNames.From, ref value)) 10187ValidateHeaderValueCharacters(HeaderNames.From, value, EncodingSelector); 10188SetValueUnknown(HeaderNames.From, value); 10196if (!TryGetUnknown(HeaderNames.GrpcAcceptEncoding, ref value)) 10205ValidateHeaderValueCharacters(HeaderNames.GrpcAcceptEncoding, value, EncodingSelector); 10206SetValueUnknown(HeaderNames.GrpcAcceptEncoding, value); 10214if (!TryGetUnknown(HeaderNames.GrpcMessage, ref value)) 10223ValidateHeaderValueCharacters(HeaderNames.GrpcMessage, value, EncodingSelector); 10224SetValueUnknown(HeaderNames.GrpcMessage, value); 10232if (!TryGetUnknown(HeaderNames.GrpcStatus, ref value)) 10241ValidateHeaderValueCharacters(HeaderNames.GrpcStatus, value, EncodingSelector); 10242SetValueUnknown(HeaderNames.GrpcStatus, value); 10250if (!TryGetUnknown(HeaderNames.GrpcTimeout, ref value)) 10259ValidateHeaderValueCharacters(HeaderNames.GrpcTimeout, value, EncodingSelector); 10260SetValueUnknown(HeaderNames.GrpcTimeout, value); 10268if (!TryGetUnknown(HeaderNames.Host, ref value)) 10277ValidateHeaderValueCharacters(HeaderNames.Host, value, EncodingSelector); 10278SetValueUnknown(HeaderNames.Host, value); 10286if (!TryGetUnknown(HeaderNames.IfMatch, ref value)) 10295ValidateHeaderValueCharacters(HeaderNames.IfMatch, value, EncodingSelector); 10296SetValueUnknown(HeaderNames.IfMatch, value); 10304if (!TryGetUnknown(HeaderNames.IfModifiedSince, ref value)) 10313ValidateHeaderValueCharacters(HeaderNames.IfModifiedSince, value, EncodingSelector); 10314SetValueUnknown(HeaderNames.IfModifiedSince, value); 10322if (!TryGetUnknown(HeaderNames.IfNoneMatch, ref value)) 10331ValidateHeaderValueCharacters(HeaderNames.IfNoneMatch, value, EncodingSelector); 10332SetValueUnknown(HeaderNames.IfNoneMatch, value); 10340if (!TryGetUnknown(HeaderNames.IfRange, ref value)) 10349ValidateHeaderValueCharacters(HeaderNames.IfRange, value, EncodingSelector); 10350SetValueUnknown(HeaderNames.IfRange, value); 10358if (!TryGetUnknown(HeaderNames.IfUnmodifiedSince, ref value)) 10367ValidateHeaderValueCharacters(HeaderNames.IfUnmodifiedSince, value, EncodingSelector); 10368SetValueUnknown(HeaderNames.IfUnmodifiedSince, value); 10376if (!TryGetUnknown(HeaderNames.Link, ref value)) 10385ValidateHeaderValueCharacters(HeaderNames.Link, value, EncodingSelector); 10386SetValueUnknown(HeaderNames.Link, value); 10394if (!TryGetUnknown(HeaderNames.MaxForwards, ref value)) 10403ValidateHeaderValueCharacters(HeaderNames.MaxForwards, value, EncodingSelector); 10404SetValueUnknown(HeaderNames.MaxForwards, value); 10412if (!TryGetUnknown(HeaderNames.Origin, ref value)) 10421ValidateHeaderValueCharacters(HeaderNames.Origin, value, EncodingSelector); 10422SetValueUnknown(HeaderNames.Origin, value); 10430if (!TryGetUnknown(HeaderNames.ProxyAuthorization, ref value)) 10439ValidateHeaderValueCharacters(HeaderNames.ProxyAuthorization, value, EncodingSelector); 10440SetValueUnknown(HeaderNames.ProxyAuthorization, value); 10448if (!TryGetUnknown(HeaderNames.Range, ref value)) 10457ValidateHeaderValueCharacters(HeaderNames.Range, value, EncodingSelector); 10458SetValueUnknown(HeaderNames.Range, value); 10466if (!TryGetUnknown(HeaderNames.Referer, ref value)) 10475ValidateHeaderValueCharacters(HeaderNames.Referer, value, EncodingSelector); 10476SetValueUnknown(HeaderNames.Referer, value); 10484if (!TryGetUnknown(HeaderNames.RequestId, ref value)) 10493ValidateHeaderValueCharacters(HeaderNames.RequestId, value, EncodingSelector); 10494SetValueUnknown(HeaderNames.RequestId, value); 10502if (!TryGetUnknown(HeaderNames.SecWebSocketAccept, ref value)) 10511ValidateHeaderValueCharacters(HeaderNames.SecWebSocketAccept, value, EncodingSelector); 10512SetValueUnknown(HeaderNames.SecWebSocketAccept, value); 10520if (!TryGetUnknown(HeaderNames.SecWebSocketKey, ref value)) 10529ValidateHeaderValueCharacters(HeaderNames.SecWebSocketKey, value, EncodingSelector); 10530SetValueUnknown(HeaderNames.SecWebSocketKey, value); 10538if (!TryGetUnknown(HeaderNames.SecWebSocketProtocol, ref value)) 10547ValidateHeaderValueCharacters(HeaderNames.SecWebSocketProtocol, value, EncodingSelector); 10548SetValueUnknown(HeaderNames.SecWebSocketProtocol, value); 10556if (!TryGetUnknown(HeaderNames.SecWebSocketVersion, ref value)) 10565ValidateHeaderValueCharacters(HeaderNames.SecWebSocketVersion, value, EncodingSelector); 10566SetValueUnknown(HeaderNames.SecWebSocketVersion, value); 10574if (!TryGetUnknown(HeaderNames.SecWebSocketExtensions, ref value)) 10583ValidateHeaderValueCharacters(HeaderNames.SecWebSocketExtensions, value, EncodingSelector); 10584SetValueUnknown(HeaderNames.SecWebSocketExtensions, value); 10592if (!TryGetUnknown(HeaderNames.StrictTransportSecurity, ref value)) 10601ValidateHeaderValueCharacters(HeaderNames.StrictTransportSecurity, value, EncodingSelector); 10602SetValueUnknown(HeaderNames.StrictTransportSecurity, value); 10610if (!TryGetUnknown(HeaderNames.TE, ref value)) 10619ValidateHeaderValueCharacters(HeaderNames.TE, value, EncodingSelector); 10620SetValueUnknown(HeaderNames.TE, value); 10628if (!TryGetUnknown(HeaderNames.Translate, ref value)) 10637ValidateHeaderValueCharacters(HeaderNames.Translate, value, EncodingSelector); 10638SetValueUnknown(HeaderNames.Translate, value); 10646if (!TryGetUnknown(HeaderNames.TraceParent, ref value)) 10655ValidateHeaderValueCharacters(HeaderNames.TraceParent, value, EncodingSelector); 10656SetValueUnknown(HeaderNames.TraceParent, value); 10664if (!TryGetUnknown(HeaderNames.TraceState, ref value)) 10673ValidateHeaderValueCharacters(HeaderNames.TraceState, value, EncodingSelector); 10674SetValueUnknown(HeaderNames.TraceState, value); 10682if (!TryGetUnknown(HeaderNames.UpgradeInsecureRequests, ref value)) 10691ValidateHeaderValueCharacters(HeaderNames.UpgradeInsecureRequests, value, EncodingSelector); 10692SetValueUnknown(HeaderNames.UpgradeInsecureRequests, value); 10700if (!TryGetUnknown(HeaderNames.UserAgent, ref value)) 10709ValidateHeaderValueCharacters(HeaderNames.UserAgent, value, EncodingSelector); 10710SetValueUnknown(HeaderNames.UserAgent, value); 10718if (!TryGetUnknown(HeaderNames.WebSocketSubProtocols, ref value)) 10727ValidateHeaderValueCharacters(HeaderNames.WebSocketSubProtocols, value, EncodingSelector); 10728SetValueUnknown(HeaderNames.WebSocketSubProtocols, value); 10736if (!TryGetUnknown(HeaderNames.XContentTypeOptions, ref value)) 10745ValidateHeaderValueCharacters(HeaderNames.XContentTypeOptions, value, EncodingSelector); 10746SetValueUnknown(HeaderNames.XContentTypeOptions, value); 10754if (!TryGetUnknown(HeaderNames.XFrameOptions, ref value)) 10763ValidateHeaderValueCharacters(HeaderNames.XFrameOptions, value, EncodingSelector); 10764SetValueUnknown(HeaderNames.XFrameOptions, value); 10772if (!TryGetUnknown(HeaderNames.XPoweredBy, ref value)) 10781ValidateHeaderValueCharacters(HeaderNames.XPoweredBy, value, EncodingSelector); 10782SetValueUnknown(HeaderNames.XPoweredBy, value); 10790if (!TryGetUnknown(HeaderNames.XRequestedWith, ref value)) 10799ValidateHeaderValueCharacters(HeaderNames.XRequestedWith, value, EncodingSelector); 10800SetValueUnknown(HeaderNames.XRequestedWith, value); 10808if (!TryGetUnknown(HeaderNames.XUACompatible, ref value)) 10817ValidateHeaderValueCharacters(HeaderNames.XUACompatible, value, EncodingSelector); 10818SetValueUnknown(HeaderNames.XUACompatible, value); 10826if (!TryGetUnknown(HeaderNames.XXSSProtection, ref value)) 10835ValidateHeaderValueCharacters(HeaderNames.XXSSProtection, value, EncodingSelector); 10836SetValueUnknown(HeaderNames.XXSSProtection, value); 10882if (ReferenceEquals(HeaderNames.Age, key)) 10891if (ReferenceEquals(HeaderNames.Via, key)) 10901if (HeaderNames.Age.Equals(key, StringComparison.OrdinalIgnoreCase)) 10910if (HeaderNames.Via.Equals(key, StringComparison.OrdinalIgnoreCase)) 10923if (ReferenceEquals(HeaderNames.Date, key)) 10932if (ReferenceEquals(HeaderNames.ETag, key)) 10941if (ReferenceEquals(HeaderNames.Vary, key)) 10951if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 10960if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 10969if (HeaderNames.Vary.Equals(key, StringComparison.OrdinalIgnoreCase)) 10982if (ReferenceEquals(HeaderNames.Allow, key)) 10992if (HeaderNames.Allow.Equals(key, StringComparison.OrdinalIgnoreCase)) 11005if (ReferenceEquals(HeaderNames.Server, key)) 11014if (ReferenceEquals(HeaderNames.Pragma, key)) 11024if (HeaderNames.Server.Equals(key, StringComparison.OrdinalIgnoreCase)) 11033if (HeaderNames.Pragma.Equals(key, StringComparison.OrdinalIgnoreCase)) 11046if (ReferenceEquals(HeaderNames.AltSvc, key)) 11055if (ReferenceEquals(HeaderNames.Expires, key)) 11064if (ReferenceEquals(HeaderNames.Trailer, key)) 11073if (ReferenceEquals(HeaderNames.Upgrade, key)) 11082if (ReferenceEquals(HeaderNames.Warning, key)) 11092if (HeaderNames.AltSvc.Equals(key, StringComparison.OrdinalIgnoreCase)) 11101if (HeaderNames.Expires.Equals(key, StringComparison.OrdinalIgnoreCase)) 11110if (HeaderNames.Trailer.Equals(key, StringComparison.OrdinalIgnoreCase)) 11119if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 11128if (HeaderNames.Warning.Equals(key, StringComparison.OrdinalIgnoreCase)) 11141if (ReferenceEquals(HeaderNames.Location, key)) 11151if (HeaderNames.Location.Equals(key, StringComparison.OrdinalIgnoreCase)) 11164if (ReferenceEquals(HeaderNames.Connection, key)) 11173if (ReferenceEquals(HeaderNames.KeepAlive, key)) 11182if (ReferenceEquals(HeaderNames.SetCookie, key)) 11192if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 11201if (HeaderNames.KeepAlive.Equals(key, StringComparison.OrdinalIgnoreCase)) 11210if (HeaderNames.SetCookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 11223if (ReferenceEquals(HeaderNames.ContentMD5, key)) 11232if (ReferenceEquals(HeaderNames.RetryAfter, key)) 11242if (HeaderNames.ContentMD5.Equals(key, StringComparison.OrdinalIgnoreCase)) 11251if (HeaderNames.RetryAfter.Equals(key, StringComparison.OrdinalIgnoreCase)) 11264if (ReferenceEquals(HeaderNames.ContentType, key)) 11274if (HeaderNames.ContentType.Equals(key, StringComparison.OrdinalIgnoreCase)) 11287if (ReferenceEquals(HeaderNames.AcceptRanges, key)) 11296if (ReferenceEquals(HeaderNames.CacheControl, key)) 11305if (ReferenceEquals(HeaderNames.ContentRange, key)) 11314if (ReferenceEquals(HeaderNames.GrpcEncoding, key)) 11323if (ReferenceEquals(HeaderNames.LastModified, key)) 11333if (HeaderNames.AcceptRanges.Equals(key, StringComparison.OrdinalIgnoreCase)) 11342if (HeaderNames.CacheControl.Equals(key, StringComparison.OrdinalIgnoreCase)) 11351if (HeaderNames.ContentRange.Equals(key, StringComparison.OrdinalIgnoreCase)) 11360if (HeaderNames.GrpcEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 11369if (HeaderNames.LastModified.Equals(key, StringComparison.OrdinalIgnoreCase)) 11382if (ReferenceEquals(HeaderNames.ContentLength, key)) 11392if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase)) 11405if (ReferenceEquals(HeaderNames.ContentEncoding, key)) 11414if (ReferenceEquals(HeaderNames.ContentLanguage, key)) 11423if (ReferenceEquals(HeaderNames.ContentLocation, key)) 11432if (ReferenceEquals(HeaderNames.ProxyConnection, key)) 11441if (ReferenceEquals(HeaderNames.WWWAuthenticate, key)) 11451if (HeaderNames.ContentEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 11460if (HeaderNames.ContentLanguage.Equals(key, StringComparison.OrdinalIgnoreCase)) 11469if (HeaderNames.ContentLocation.Equals(key, StringComparison.OrdinalIgnoreCase)) 11478if (HeaderNames.ProxyConnection.Equals(key, StringComparison.OrdinalIgnoreCase)) 11487if (HeaderNames.WWWAuthenticate.Equals(key, StringComparison.OrdinalIgnoreCase)) 11500if (ReferenceEquals(HeaderNames.TransferEncoding, key)) 11510if (HeaderNames.TransferEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 11523if (ReferenceEquals(HeaderNames.ProxyAuthenticate, key)) 11533if (HeaderNames.ProxyAuthenticate.Equals(key, StringComparison.OrdinalIgnoreCase)) 11546if (ReferenceEquals(HeaderNames.AccessControlMaxAge, key)) 11556if (HeaderNames.AccessControlMaxAge.Equals(key, StringComparison.OrdinalIgnoreCase)) 11569if (ReferenceEquals(HeaderNames.AccessControlAllowOrigin, key)) 11579if (HeaderNames.AccessControlAllowOrigin.Equals(key, StringComparison.OrdinalIgnoreCase)) 11592if (ReferenceEquals(HeaderNames.AccessControlAllowHeaders, key)) 11601if (ReferenceEquals(HeaderNames.AccessControlAllowMethods, key)) 11611if (HeaderNames.AccessControlAllowHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 11620if (HeaderNames.AccessControlAllowMethods.Equals(key, StringComparison.OrdinalIgnoreCase)) 11633if (ReferenceEquals(HeaderNames.AccessControlExposeHeaders, key)) 11643if (HeaderNames.AccessControlExposeHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 11656if (ReferenceEquals(HeaderNames.AccessControlAllowCredentials, key)) 11666if (HeaderNames.AccessControlAllowCredentials.Equals(key, StringComparison.OrdinalIgnoreCase)) 11689if (ReferenceEquals(HeaderNames.Age, key)) 11695if (ReferenceEquals(HeaderNames.Via, key)) 11702if (HeaderNames.Age.Equals(key, StringComparison.OrdinalIgnoreCase)) 11708if (HeaderNames.Via.Equals(key, StringComparison.OrdinalIgnoreCase)) 11718if (ReferenceEquals(HeaderNames.Date, key)) 11725if (ReferenceEquals(HeaderNames.ETag, key)) 11731if (ReferenceEquals(HeaderNames.Vary, key)) 11738if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 11745if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 11751if (HeaderNames.Vary.Equals(key, StringComparison.OrdinalIgnoreCase)) 11761if (ReferenceEquals(HeaderNames.Allow, key)) 11768if (HeaderNames.Allow.Equals(key, StringComparison.OrdinalIgnoreCase)) 11778if (ReferenceEquals(HeaderNames.Server, key)) 11785if (ReferenceEquals(HeaderNames.Pragma, key)) 11792if (HeaderNames.Server.Equals(key, StringComparison.OrdinalIgnoreCase)) 11799if (HeaderNames.Pragma.Equals(key, StringComparison.OrdinalIgnoreCase)) 11809if (ReferenceEquals(HeaderNames.AltSvc, key)) 11816if (ReferenceEquals(HeaderNames.Expires, key)) 11822if (ReferenceEquals(HeaderNames.Trailer, key)) 11828if (ReferenceEquals(HeaderNames.Upgrade, key)) 11834if (ReferenceEquals(HeaderNames.Warning, key)) 11841if (HeaderNames.AltSvc.Equals(key, StringComparison.OrdinalIgnoreCase)) 11848if (HeaderNames.Expires.Equals(key, StringComparison.OrdinalIgnoreCase)) 11854if (HeaderNames.Trailer.Equals(key, StringComparison.OrdinalIgnoreCase)) 11860if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 11866if (HeaderNames.Warning.Equals(key, StringComparison.OrdinalIgnoreCase)) 11876if (ReferenceEquals(HeaderNames.Location, key)) 11883if (HeaderNames.Location.Equals(key, StringComparison.OrdinalIgnoreCase)) 11893if (ReferenceEquals(HeaderNames.Connection, key)) 11900if (ReferenceEquals(HeaderNames.KeepAlive, key)) 11906if (ReferenceEquals(HeaderNames.SetCookie, key)) 11913if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 11920if (HeaderNames.KeepAlive.Equals(key, StringComparison.OrdinalIgnoreCase)) 11926if (HeaderNames.SetCookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 11936if (ReferenceEquals(HeaderNames.ContentMD5, key)) 11942if (ReferenceEquals(HeaderNames.RetryAfter, key)) 11949if (HeaderNames.ContentMD5.Equals(key, StringComparison.OrdinalIgnoreCase)) 11955if (HeaderNames.RetryAfter.Equals(key, StringComparison.OrdinalIgnoreCase)) 11965if (ReferenceEquals(HeaderNames.ContentType, key)) 11972if (HeaderNames.ContentType.Equals(key, StringComparison.OrdinalIgnoreCase)) 11982if (ReferenceEquals(HeaderNames.AcceptRanges, key)) 11988if (ReferenceEquals(HeaderNames.CacheControl, key)) 11994if (ReferenceEquals(HeaderNames.ContentRange, key)) 12000if (ReferenceEquals(HeaderNames.GrpcEncoding, key)) 12006if (ReferenceEquals(HeaderNames.LastModified, key)) 12013if (HeaderNames.AcceptRanges.Equals(key, StringComparison.OrdinalIgnoreCase)) 12019if (HeaderNames.CacheControl.Equals(key, StringComparison.OrdinalIgnoreCase)) 12025if (HeaderNames.ContentRange.Equals(key, StringComparison.OrdinalIgnoreCase)) 12031if (HeaderNames.GrpcEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 12037if (HeaderNames.LastModified.Equals(key, StringComparison.OrdinalIgnoreCase)) 12047if (ReferenceEquals(HeaderNames.ContentLength, key)) 12053if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase)) 12062if (ReferenceEquals(HeaderNames.ContentEncoding, key)) 12068if (ReferenceEquals(HeaderNames.ContentLanguage, key)) 12074if (ReferenceEquals(HeaderNames.ContentLocation, key)) 12080if (ReferenceEquals(HeaderNames.ProxyConnection, key)) 12086if (ReferenceEquals(HeaderNames.WWWAuthenticate, key)) 12093if (HeaderNames.ContentEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 12099if (HeaderNames.ContentLanguage.Equals(key, StringComparison.OrdinalIgnoreCase)) 12105if (HeaderNames.ContentLocation.Equals(key, StringComparison.OrdinalIgnoreCase)) 12111if (HeaderNames.ProxyConnection.Equals(key, StringComparison.OrdinalIgnoreCase)) 12117if (HeaderNames.WWWAuthenticate.Equals(key, StringComparison.OrdinalIgnoreCase)) 12127if (ReferenceEquals(HeaderNames.TransferEncoding, key)) 12135if (HeaderNames.TransferEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 12146if (ReferenceEquals(HeaderNames.ProxyAuthenticate, key)) 12153if (HeaderNames.ProxyAuthenticate.Equals(key, StringComparison.OrdinalIgnoreCase)) 12163if (ReferenceEquals(HeaderNames.AccessControlMaxAge, key)) 12170if (HeaderNames.AccessControlMaxAge.Equals(key, StringComparison.OrdinalIgnoreCase)) 12180if (ReferenceEquals(HeaderNames.AccessControlAllowOrigin, key)) 12187if (HeaderNames.AccessControlAllowOrigin.Equals(key, StringComparison.OrdinalIgnoreCase)) 12197if (ReferenceEquals(HeaderNames.AccessControlAllowHeaders, key)) 12203if (ReferenceEquals(HeaderNames.AccessControlAllowMethods, key)) 12210if (HeaderNames.AccessControlAllowHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 12216if (HeaderNames.AccessControlAllowMethods.Equals(key, StringComparison.OrdinalIgnoreCase)) 12226if (ReferenceEquals(HeaderNames.AccessControlExposeHeaders, key)) 12233if (HeaderNames.AccessControlExposeHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 12243if (ReferenceEquals(HeaderNames.AccessControlAllowCredentials, key)) 12250if (HeaderNames.AccessControlAllowCredentials.Equals(key, StringComparison.OrdinalIgnoreCase)) 12270if (ReferenceEquals(HeaderNames.Age, key)) 12280if (ReferenceEquals(HeaderNames.Via, key)) 12291if (HeaderNames.Age.Equals(key, StringComparison.OrdinalIgnoreCase)) 12301if (HeaderNames.Via.Equals(key, StringComparison.OrdinalIgnoreCase)) 12315if (ReferenceEquals(HeaderNames.Date, key)) 12326if (ReferenceEquals(HeaderNames.ETag, key)) 12336if (ReferenceEquals(HeaderNames.Vary, key)) 12347if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 12358if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 12368if (HeaderNames.Vary.Equals(key, StringComparison.OrdinalIgnoreCase)) 12382if (ReferenceEquals(HeaderNames.Allow, key)) 12393if (HeaderNames.Allow.Equals(key, StringComparison.OrdinalIgnoreCase)) 12407if (ReferenceEquals(HeaderNames.Server, key)) 12418if (ReferenceEquals(HeaderNames.Pragma, key)) 12429if (HeaderNames.Server.Equals(key, StringComparison.OrdinalIgnoreCase)) 12440if (HeaderNames.Pragma.Equals(key, StringComparison.OrdinalIgnoreCase)) 12454if (ReferenceEquals(HeaderNames.AltSvc, key)) 12465if (ReferenceEquals(HeaderNames.Expires, key)) 12475if (ReferenceEquals(HeaderNames.Trailer, key)) 12485if (ReferenceEquals(HeaderNames.Upgrade, key)) 12495if (ReferenceEquals(HeaderNames.Warning, key)) 12506if (HeaderNames.AltSvc.Equals(key, StringComparison.OrdinalIgnoreCase)) 12517if (HeaderNames.Expires.Equals(key, StringComparison.OrdinalIgnoreCase)) 12527if (HeaderNames.Trailer.Equals(key, StringComparison.OrdinalIgnoreCase)) 12537if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 12547if (HeaderNames.Warning.Equals(key, StringComparison.OrdinalIgnoreCase)) 12561if (ReferenceEquals(HeaderNames.Location, key)) 12572if (HeaderNames.Location.Equals(key, StringComparison.OrdinalIgnoreCase)) 12586if (ReferenceEquals(HeaderNames.Connection, key)) 12597if (ReferenceEquals(HeaderNames.KeepAlive, key)) 12607if (ReferenceEquals(HeaderNames.SetCookie, key)) 12618if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 12629if (HeaderNames.KeepAlive.Equals(key, StringComparison.OrdinalIgnoreCase)) 12639if (HeaderNames.SetCookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 12653if (ReferenceEquals(HeaderNames.ContentMD5, key)) 12663if (ReferenceEquals(HeaderNames.RetryAfter, key)) 12674if (HeaderNames.ContentMD5.Equals(key, StringComparison.OrdinalIgnoreCase)) 12684if (HeaderNames.RetryAfter.Equals(key, StringComparison.OrdinalIgnoreCase)) 12698if (ReferenceEquals(HeaderNames.ContentType, key)) 12709if (HeaderNames.ContentType.Equals(key, StringComparison.OrdinalIgnoreCase)) 12723if (ReferenceEquals(HeaderNames.AcceptRanges, key)) 12733if (ReferenceEquals(HeaderNames.CacheControl, key)) 12743if (ReferenceEquals(HeaderNames.ContentRange, key)) 12753if (ReferenceEquals(HeaderNames.GrpcEncoding, key)) 12763if (ReferenceEquals(HeaderNames.LastModified, key)) 12774if (HeaderNames.AcceptRanges.Equals(key, StringComparison.OrdinalIgnoreCase)) 12784if (HeaderNames.CacheControl.Equals(key, StringComparison.OrdinalIgnoreCase)) 12794if (HeaderNames.ContentRange.Equals(key, StringComparison.OrdinalIgnoreCase)) 12804if (HeaderNames.GrpcEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 12814if (HeaderNames.LastModified.Equals(key, StringComparison.OrdinalIgnoreCase)) 12828if (ReferenceEquals(HeaderNames.ContentLength, key)) 12838if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase)) 12851if (ReferenceEquals(HeaderNames.ContentEncoding, key)) 12861if (ReferenceEquals(HeaderNames.ContentLanguage, key)) 12871if (ReferenceEquals(HeaderNames.ContentLocation, key)) 12881if (ReferenceEquals(HeaderNames.ProxyConnection, key)) 12891if (ReferenceEquals(HeaderNames.WWWAuthenticate, key)) 12902if (HeaderNames.ContentEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 12912if (HeaderNames.ContentLanguage.Equals(key, StringComparison.OrdinalIgnoreCase)) 12922if (HeaderNames.ContentLocation.Equals(key, StringComparison.OrdinalIgnoreCase)) 12932if (HeaderNames.ProxyConnection.Equals(key, StringComparison.OrdinalIgnoreCase)) 12942if (HeaderNames.WWWAuthenticate.Equals(key, StringComparison.OrdinalIgnoreCase)) 12956if (ReferenceEquals(HeaderNames.TransferEncoding, key)) 12968if (HeaderNames.TransferEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 12983if (ReferenceEquals(HeaderNames.ProxyAuthenticate, key)) 12994if (HeaderNames.ProxyAuthenticate.Equals(key, StringComparison.OrdinalIgnoreCase)) 13008if (ReferenceEquals(HeaderNames.AccessControlMaxAge, key)) 13019if (HeaderNames.AccessControlMaxAge.Equals(key, StringComparison.OrdinalIgnoreCase)) 13033if (ReferenceEquals(HeaderNames.AccessControlAllowOrigin, key)) 13044if (HeaderNames.AccessControlAllowOrigin.Equals(key, StringComparison.OrdinalIgnoreCase)) 13058if (ReferenceEquals(HeaderNames.AccessControlAllowHeaders, key)) 13068if (ReferenceEquals(HeaderNames.AccessControlAllowMethods, key)) 13079if (HeaderNames.AccessControlAllowHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 13089if (HeaderNames.AccessControlAllowMethods.Equals(key, StringComparison.OrdinalIgnoreCase)) 13103if (ReferenceEquals(HeaderNames.AccessControlExposeHeaders, key)) 13114if (HeaderNames.AccessControlExposeHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 13128if (ReferenceEquals(HeaderNames.AccessControlAllowCredentials, key)) 13139if (HeaderNames.AccessControlAllowCredentials.Equals(key, StringComparison.OrdinalIgnoreCase)) 13162if (ReferenceEquals(HeaderNames.Age, key)) 13172if (ReferenceEquals(HeaderNames.Via, key)) 13183if (HeaderNames.Age.Equals(key, StringComparison.OrdinalIgnoreCase)) 13193if (HeaderNames.Via.Equals(key, StringComparison.OrdinalIgnoreCase)) 13207if (ReferenceEquals(HeaderNames.Date, key)) 13218if (ReferenceEquals(HeaderNames.ETag, key)) 13228if (ReferenceEquals(HeaderNames.Vary, key)) 13239if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 13250if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 13260if (HeaderNames.Vary.Equals(key, StringComparison.OrdinalIgnoreCase)) 13274if (ReferenceEquals(HeaderNames.Allow, key)) 13285if (HeaderNames.Allow.Equals(key, StringComparison.OrdinalIgnoreCase)) 13299if (ReferenceEquals(HeaderNames.Server, key)) 13310if (ReferenceEquals(HeaderNames.Pragma, key)) 13321if (HeaderNames.Server.Equals(key, StringComparison.OrdinalIgnoreCase)) 13332if (HeaderNames.Pragma.Equals(key, StringComparison.OrdinalIgnoreCase)) 13346if (ReferenceEquals(HeaderNames.AltSvc, key)) 13357if (ReferenceEquals(HeaderNames.Expires, key)) 13367if (ReferenceEquals(HeaderNames.Trailer, key)) 13377if (ReferenceEquals(HeaderNames.Upgrade, key)) 13387if (ReferenceEquals(HeaderNames.Warning, key)) 13398if (HeaderNames.AltSvc.Equals(key, StringComparison.OrdinalIgnoreCase)) 13409if (HeaderNames.Expires.Equals(key, StringComparison.OrdinalIgnoreCase)) 13419if (HeaderNames.Trailer.Equals(key, StringComparison.OrdinalIgnoreCase)) 13429if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 13439if (HeaderNames.Warning.Equals(key, StringComparison.OrdinalIgnoreCase)) 13453if (ReferenceEquals(HeaderNames.Location, key)) 13464if (HeaderNames.Location.Equals(key, StringComparison.OrdinalIgnoreCase)) 13478if (ReferenceEquals(HeaderNames.Connection, key)) 13489if (ReferenceEquals(HeaderNames.KeepAlive, key)) 13499if (ReferenceEquals(HeaderNames.SetCookie, key)) 13510if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 13521if (HeaderNames.KeepAlive.Equals(key, StringComparison.OrdinalIgnoreCase)) 13531if (HeaderNames.SetCookie.Equals(key, StringComparison.OrdinalIgnoreCase)) 13545if (ReferenceEquals(HeaderNames.ContentMD5, key)) 13555if (ReferenceEquals(HeaderNames.RetryAfter, key)) 13566if (HeaderNames.ContentMD5.Equals(key, StringComparison.OrdinalIgnoreCase)) 13576if (HeaderNames.RetryAfter.Equals(key, StringComparison.OrdinalIgnoreCase)) 13590if (ReferenceEquals(HeaderNames.ContentType, key)) 13601if (HeaderNames.ContentType.Equals(key, StringComparison.OrdinalIgnoreCase)) 13615if (ReferenceEquals(HeaderNames.AcceptRanges, key)) 13625if (ReferenceEquals(HeaderNames.CacheControl, key)) 13635if (ReferenceEquals(HeaderNames.ContentRange, key)) 13645if (ReferenceEquals(HeaderNames.GrpcEncoding, key)) 13655if (ReferenceEquals(HeaderNames.LastModified, key)) 13666if (HeaderNames.AcceptRanges.Equals(key, StringComparison.OrdinalIgnoreCase)) 13676if (HeaderNames.CacheControl.Equals(key, StringComparison.OrdinalIgnoreCase)) 13686if (HeaderNames.ContentRange.Equals(key, StringComparison.OrdinalIgnoreCase)) 13696if (HeaderNames.GrpcEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 13706if (HeaderNames.LastModified.Equals(key, StringComparison.OrdinalIgnoreCase)) 13720if (ReferenceEquals(HeaderNames.ContentLength, key)) 13730if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase)) 13743if (ReferenceEquals(HeaderNames.ContentEncoding, key)) 13753if (ReferenceEquals(HeaderNames.ContentLanguage, key)) 13763if (ReferenceEquals(HeaderNames.ContentLocation, key)) 13773if (ReferenceEquals(HeaderNames.ProxyConnection, key)) 13783if (ReferenceEquals(HeaderNames.WWWAuthenticate, key)) 13794if (HeaderNames.ContentEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 13804if (HeaderNames.ContentLanguage.Equals(key, StringComparison.OrdinalIgnoreCase)) 13814if (HeaderNames.ContentLocation.Equals(key, StringComparison.OrdinalIgnoreCase)) 13824if (HeaderNames.ProxyConnection.Equals(key, StringComparison.OrdinalIgnoreCase)) 13834if (HeaderNames.WWWAuthenticate.Equals(key, StringComparison.OrdinalIgnoreCase)) 13848if (ReferenceEquals(HeaderNames.TransferEncoding, key)) 13860if (HeaderNames.TransferEncoding.Equals(key, StringComparison.OrdinalIgnoreCase)) 13875if (ReferenceEquals(HeaderNames.ProxyAuthenticate, key)) 13886if (HeaderNames.ProxyAuthenticate.Equals(key, StringComparison.OrdinalIgnoreCase)) 13900if (ReferenceEquals(HeaderNames.AccessControlMaxAge, key)) 13911if (HeaderNames.AccessControlMaxAge.Equals(key, StringComparison.OrdinalIgnoreCase)) 13925if (ReferenceEquals(HeaderNames.AccessControlAllowOrigin, key)) 13936if (HeaderNames.AccessControlAllowOrigin.Equals(key, StringComparison.OrdinalIgnoreCase)) 13950if (ReferenceEquals(HeaderNames.AccessControlAllowHeaders, key)) 13960if (ReferenceEquals(HeaderNames.AccessControlAllowMethods, key)) 13971if (HeaderNames.AccessControlAllowHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 13981if (HeaderNames.AccessControlAllowMethods.Equals(key, StringComparison.OrdinalIgnoreCase)) 13995if (ReferenceEquals(HeaderNames.AccessControlExposeHeaders, key)) 14006if (HeaderNames.AccessControlExposeHeaders.Equals(key, StringComparison.OrdinalIgnoreCase)) 14020if (ReferenceEquals(HeaderNames.AccessControlAllowCredentials, key)) 14031if (HeaderNames.AccessControlAllowCredentials.Equals(key, StringComparison.OrdinalIgnoreCase)) 14454array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Connection, _headers._Connection); 14463array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentType, _headers._ContentType); 14472array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Date, _headers._Date); 14481array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Server, _headers._Server); 14490array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AcceptRanges, _headers._AcceptRanges); 14499array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowCredentials, _headers._AccessControlAllowCredentials); 14508array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowHeaders, _headers._AccessControlAllowHeaders); 14517array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowMethods, _headers._AccessControlAllowMethods); 14526array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowOrigin, _headers._AccessControlAllowOrigin); 14535array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlExposeHeaders, _headers._AccessControlExposeHeaders); 14544array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlMaxAge, _headers._AccessControlMaxAge); 14553array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Age, _headers._Age); 14562array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Allow, _headers._Allow); 14571array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AltSvc, _headers._AltSvc); 14580array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.CacheControl, _headers._CacheControl); 14589array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentEncoding, _headers._ContentEncoding); 14598array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLanguage, _headers._ContentLanguage); 14607array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLocation, _headers._ContentLocation); 14616array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentMD5, _headers._ContentMD5); 14625array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentRange, _headers._ContentRange); 14634array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ETag, _headers._ETag); 14643array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Expires, _headers._Expires); 14652array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.GrpcEncoding, _headers._GrpcEncoding); 14661array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.KeepAlive, _headers._KeepAlive); 14670array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.LastModified, _headers._LastModified); 14679array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Location, _headers._Location); 14688array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Pragma, _headers._Pragma); 14697array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ProxyAuthenticate, _headers._ProxyAuthenticate); 14706array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ProxyConnection, _headers._ProxyConnection); 14715array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.RetryAfter, _headers._RetryAfter); 14724array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.SetCookie, _headers._SetCookie); 14733array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Trailer, _headers._Trailer); 14742array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.TransferEncoding, _headers._TransferEncoding); 14751array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, _headers._Upgrade); 14760array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Vary, _headers._Vary); 14769array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Via, _headers._Via); 14778array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Warning, _headers._Warning); 14787array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.WWWAuthenticate, _headers._WWWAuthenticate); 14796array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value)); 14849headerName = HeaderNames.Connection; 14875headerName = HeaderNames.Date; 14894headerName = HeaderNames.Server; 14976headerName = HeaderNames.AltSvc; 15121headerName = HeaderNames.TransferEncoding; 15254_current = new KeyValuePair<string, StringValues>(HeaderNames.Connection, _collection._headers._Connection); 15260_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentType, _collection._headers._ContentType); 15266_current = new KeyValuePair<string, StringValues>(HeaderNames.Date, _collection._headers._Date); 15272_current = new KeyValuePair<string, StringValues>(HeaderNames.Server, _collection._headers._Server); 15278_current = new KeyValuePair<string, StringValues>(HeaderNames.AcceptRanges, _collection._headers._AcceptRanges); 15284_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowCredentials, _collection._headers._AccessControlAllowCredentials); 15290_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowHeaders, _collection._headers._AccessControlAllowHeaders); 15296_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowMethods, _collection._headers._AccessControlAllowMethods); 15302_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowOrigin, _collection._headers._AccessControlAllowOrigin); 15308_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlExposeHeaders, _collection._headers._AccessControlExposeHeaders); 15314_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlMaxAge, _collection._headers._AccessControlMaxAge); 15320_current = new KeyValuePair<string, StringValues>(HeaderNames.Age, _collection._headers._Age); 15326_current = new KeyValuePair<string, StringValues>(HeaderNames.Allow, _collection._headers._Allow); 15332_current = new KeyValuePair<string, StringValues>(HeaderNames.AltSvc, _collection._headers._AltSvc); 15338_current = new KeyValuePair<string, StringValues>(HeaderNames.CacheControl, _collection._headers._CacheControl); 15344_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentEncoding, _collection._headers._ContentEncoding); 15350_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentLanguage, _collection._headers._ContentLanguage); 15356_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentLocation, _collection._headers._ContentLocation); 15362_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentMD5, _collection._headers._ContentMD5); 15368_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentRange, _collection._headers._ContentRange); 15374_current = new KeyValuePair<string, StringValues>(HeaderNames.ETag, _collection._headers._ETag); 15380_current = new KeyValuePair<string, StringValues>(HeaderNames.Expires, _collection._headers._Expires); 15386_current = new KeyValuePair<string, StringValues>(HeaderNames.GrpcEncoding, _collection._headers._GrpcEncoding); 15392_current = new KeyValuePair<string, StringValues>(HeaderNames.KeepAlive, _collection._headers._KeepAlive); 15398_current = new KeyValuePair<string, StringValues>(HeaderNames.LastModified, _collection._headers._LastModified); 15404_current = new KeyValuePair<string, StringValues>(HeaderNames.Location, _collection._headers._Location); 15410_current = new KeyValuePair<string, StringValues>(HeaderNames.Pragma, _collection._headers._Pragma); 15416_current = new KeyValuePair<string, StringValues>(HeaderNames.ProxyAuthenticate, _collection._headers._ProxyAuthenticate); 15422_current = new KeyValuePair<string, StringValues>(HeaderNames.ProxyConnection, _collection._headers._ProxyConnection); 15428_current = new KeyValuePair<string, StringValues>(HeaderNames.RetryAfter, _collection._headers._RetryAfter); 15434_current = new KeyValuePair<string, StringValues>(HeaderNames.SetCookie, _collection._headers._SetCookie); 15440_current = new KeyValuePair<string, StringValues>(HeaderNames.Trailer, _collection._headers._Trailer); 15446_current = new KeyValuePair<string, StringValues>(HeaderNames.TransferEncoding, _collection._headers._TransferEncoding); 15452_current = new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, _collection._headers._Upgrade); 15458_current = new KeyValuePair<string, StringValues>(HeaderNames.Vary, _collection._headers._Vary); 15464_current = new KeyValuePair<string, StringValues>(HeaderNames.Via, _collection._headers._Via); 15470_current = new KeyValuePair<string, StringValues>(HeaderNames.Warning, _collection._headers._Warning); 15476_current = new KeyValuePair<string, StringValues>(HeaderNames.WWWAuthenticate, _collection._headers._WWWAuthenticate); 15482_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_collection._contentLength.GetValueOrDefault())); 15548ValidateHeaderValueCharacters(HeaderNames.ETag, value, EncodingSelector); 15577ValidateHeaderValueCharacters(HeaderNames.GrpcMessage, value, EncodingSelector); 15606ValidateHeaderValueCharacters(HeaderNames.GrpcStatus, value, EncodingSelector); 15623if (!TryGetUnknown(HeaderNames.Accept, ref value)) 15632ValidateHeaderValueCharacters(HeaderNames.Accept, value, EncodingSelector); 15633SetValueUnknown(HeaderNames.Accept, value); 15641if (!TryGetUnknown(HeaderNames.AcceptCharset, ref value)) 15650ValidateHeaderValueCharacters(HeaderNames.AcceptCharset, value, EncodingSelector); 15651SetValueUnknown(HeaderNames.AcceptCharset, value); 15659if (!TryGetUnknown(HeaderNames.AcceptEncoding, ref value)) 15668ValidateHeaderValueCharacters(HeaderNames.AcceptEncoding, value, EncodingSelector); 15669SetValueUnknown(HeaderNames.AcceptEncoding, value); 15677if (!TryGetUnknown(HeaderNames.AcceptLanguage, ref value)) 15686ValidateHeaderValueCharacters(HeaderNames.AcceptLanguage, value, EncodingSelector); 15687SetValueUnknown(HeaderNames.AcceptLanguage, value); 15695if (!TryGetUnknown(HeaderNames.AcceptRanges, ref value)) 15704ValidateHeaderValueCharacters(HeaderNames.AcceptRanges, value, EncodingSelector); 15705SetValueUnknown(HeaderNames.AcceptRanges, value); 15713if (!TryGetUnknown(HeaderNames.AccessControlAllowCredentials, ref value)) 15722ValidateHeaderValueCharacters(HeaderNames.AccessControlAllowCredentials, value, EncodingSelector); 15723SetValueUnknown(HeaderNames.AccessControlAllowCredentials, value); 15731if (!TryGetUnknown(HeaderNames.AccessControlAllowHeaders, ref value)) 15740ValidateHeaderValueCharacters(HeaderNames.AccessControlAllowHeaders, value, EncodingSelector); 15741SetValueUnknown(HeaderNames.AccessControlAllowHeaders, value); 15749if (!TryGetUnknown(HeaderNames.AccessControlAllowMethods, ref value)) 15758ValidateHeaderValueCharacters(HeaderNames.AccessControlAllowMethods, value, EncodingSelector); 15759SetValueUnknown(HeaderNames.AccessControlAllowMethods, value); 15767if (!TryGetUnknown(HeaderNames.AccessControlAllowOrigin, ref value)) 15776ValidateHeaderValueCharacters(HeaderNames.AccessControlAllowOrigin, value, EncodingSelector); 15777SetValueUnknown(HeaderNames.AccessControlAllowOrigin, value); 15785if (!TryGetUnknown(HeaderNames.AccessControlExposeHeaders, ref value)) 15794ValidateHeaderValueCharacters(HeaderNames.AccessControlExposeHeaders, value, EncodingSelector); 15795SetValueUnknown(HeaderNames.AccessControlExposeHeaders, value); 15803if (!TryGetUnknown(HeaderNames.AccessControlMaxAge, ref value)) 15812ValidateHeaderValueCharacters(HeaderNames.AccessControlMaxAge, value, EncodingSelector); 15813SetValueUnknown(HeaderNames.AccessControlMaxAge, value); 15821if (!TryGetUnknown(HeaderNames.AccessControlRequestHeaders, ref value)) 15830ValidateHeaderValueCharacters(HeaderNames.AccessControlRequestHeaders, value, EncodingSelector); 15831SetValueUnknown(HeaderNames.AccessControlRequestHeaders, value); 15839if (!TryGetUnknown(HeaderNames.AccessControlRequestMethod, ref value)) 15848ValidateHeaderValueCharacters(HeaderNames.AccessControlRequestMethod, value, EncodingSelector); 15849SetValueUnknown(HeaderNames.AccessControlRequestMethod, value); 15857if (!TryGetUnknown(HeaderNames.Age, ref value)) 15866ValidateHeaderValueCharacters(HeaderNames.Age, value, EncodingSelector); 15867SetValueUnknown(HeaderNames.Age, value); 15875if (!TryGetUnknown(HeaderNames.Allow, ref value)) 15884ValidateHeaderValueCharacters(HeaderNames.Allow, value, EncodingSelector); 15885SetValueUnknown(HeaderNames.Allow, value); 15893if (!TryGetUnknown(HeaderNames.AltSvc, ref value)) 15902ValidateHeaderValueCharacters(HeaderNames.AltSvc, value, EncodingSelector); 15903SetValueUnknown(HeaderNames.AltSvc, value); 15911if (!TryGetUnknown(HeaderNames.Authorization, ref value)) 15920ValidateHeaderValueCharacters(HeaderNames.Authorization, value, EncodingSelector); 15921SetValueUnknown(HeaderNames.Authorization, value); 15929if (!TryGetUnknown(HeaderNames.Baggage, ref value)) 15938ValidateHeaderValueCharacters(HeaderNames.Baggage, value, EncodingSelector); 15939SetValueUnknown(HeaderNames.Baggage, value); 15947if (!TryGetUnknown(HeaderNames.CacheControl, ref value)) 15956ValidateHeaderValueCharacters(HeaderNames.CacheControl, value, EncodingSelector); 15957SetValueUnknown(HeaderNames.CacheControl, value); 15965if (!TryGetUnknown(HeaderNames.Connection, ref value)) 15974ValidateHeaderValueCharacters(HeaderNames.Connection, value, EncodingSelector); 15975SetValueUnknown(HeaderNames.Connection, value); 15983if (!TryGetUnknown(HeaderNames.ContentDisposition, ref value)) 15992ValidateHeaderValueCharacters(HeaderNames.ContentDisposition, value, EncodingSelector); 15993SetValueUnknown(HeaderNames.ContentDisposition, value); 16001if (!TryGetUnknown(HeaderNames.ContentEncoding, ref value)) 16010ValidateHeaderValueCharacters(HeaderNames.ContentEncoding, value, EncodingSelector); 16011SetValueUnknown(HeaderNames.ContentEncoding, value); 16019if (!TryGetUnknown(HeaderNames.ContentLanguage, ref value)) 16028ValidateHeaderValueCharacters(HeaderNames.ContentLanguage, value, EncodingSelector); 16029SetValueUnknown(HeaderNames.ContentLanguage, value); 16037if (!TryGetUnknown(HeaderNames.ContentLocation, ref value)) 16046ValidateHeaderValueCharacters(HeaderNames.ContentLocation, value, EncodingSelector); 16047SetValueUnknown(HeaderNames.ContentLocation, value); 16055if (!TryGetUnknown(HeaderNames.ContentMD5, ref value)) 16064ValidateHeaderValueCharacters(HeaderNames.ContentMD5, value, EncodingSelector); 16065SetValueUnknown(HeaderNames.ContentMD5, value); 16073if (!TryGetUnknown(HeaderNames.ContentRange, ref value)) 16082ValidateHeaderValueCharacters(HeaderNames.ContentRange, value, EncodingSelector); 16083SetValueUnknown(HeaderNames.ContentRange, value); 16091if (!TryGetUnknown(HeaderNames.ContentSecurityPolicy, ref value)) 16100ValidateHeaderValueCharacters(HeaderNames.ContentSecurityPolicy, value, EncodingSelector); 16101SetValueUnknown(HeaderNames.ContentSecurityPolicy, value); 16109if (!TryGetUnknown(HeaderNames.ContentSecurityPolicyReportOnly, ref value)) 16118ValidateHeaderValueCharacters(HeaderNames.ContentSecurityPolicyReportOnly, value, EncodingSelector); 16119SetValueUnknown(HeaderNames.ContentSecurityPolicyReportOnly, value); 16127if (!TryGetUnknown(HeaderNames.ContentType, ref value)) 16136ValidateHeaderValueCharacters(HeaderNames.ContentType, value, EncodingSelector); 16137SetValueUnknown(HeaderNames.ContentType, value); 16145if (!TryGetUnknown(HeaderNames.CorrelationContext, ref value)) 16154ValidateHeaderValueCharacters(HeaderNames.CorrelationContext, value, EncodingSelector); 16155SetValueUnknown(HeaderNames.CorrelationContext, value); 16163if (!TryGetUnknown(HeaderNames.Cookie, ref value)) 16172ValidateHeaderValueCharacters(HeaderNames.Cookie, value, EncodingSelector); 16173SetValueUnknown(HeaderNames.Cookie, value); 16181if (!TryGetUnknown(HeaderNames.Date, ref value)) 16190ValidateHeaderValueCharacters(HeaderNames.Date, value, EncodingSelector); 16191SetValueUnknown(HeaderNames.Date, value); 16199if (!TryGetUnknown(HeaderNames.Expires, ref value)) 16208ValidateHeaderValueCharacters(HeaderNames.Expires, value, EncodingSelector); 16209SetValueUnknown(HeaderNames.Expires, value); 16217if (!TryGetUnknown(HeaderNames.Expect, ref value)) 16226ValidateHeaderValueCharacters(HeaderNames.Expect, value, EncodingSelector); 16227SetValueUnknown(HeaderNames.Expect, value); 16235if (!TryGetUnknown(HeaderNames.From, ref value)) 16244ValidateHeaderValueCharacters(HeaderNames.From, value, EncodingSelector); 16245SetValueUnknown(HeaderNames.From, value); 16253if (!TryGetUnknown(HeaderNames.GrpcAcceptEncoding, ref value)) 16262ValidateHeaderValueCharacters(HeaderNames.GrpcAcceptEncoding, value, EncodingSelector); 16263SetValueUnknown(HeaderNames.GrpcAcceptEncoding, value); 16271if (!TryGetUnknown(HeaderNames.GrpcEncoding, ref value)) 16280ValidateHeaderValueCharacters(HeaderNames.GrpcEncoding, value, EncodingSelector); 16281SetValueUnknown(HeaderNames.GrpcEncoding, value); 16289if (!TryGetUnknown(HeaderNames.GrpcTimeout, ref value)) 16298ValidateHeaderValueCharacters(HeaderNames.GrpcTimeout, value, EncodingSelector); 16299SetValueUnknown(HeaderNames.GrpcTimeout, value); 16307if (!TryGetUnknown(HeaderNames.Host, ref value)) 16316ValidateHeaderValueCharacters(HeaderNames.Host, value, EncodingSelector); 16317SetValueUnknown(HeaderNames.Host, value); 16325if (!TryGetUnknown(HeaderNames.KeepAlive, ref value)) 16334ValidateHeaderValueCharacters(HeaderNames.KeepAlive, value, EncodingSelector); 16335SetValueUnknown(HeaderNames.KeepAlive, value); 16343if (!TryGetUnknown(HeaderNames.IfMatch, ref value)) 16352ValidateHeaderValueCharacters(HeaderNames.IfMatch, value, EncodingSelector); 16353SetValueUnknown(HeaderNames.IfMatch, value); 16361if (!TryGetUnknown(HeaderNames.IfModifiedSince, ref value)) 16370ValidateHeaderValueCharacters(HeaderNames.IfModifiedSince, value, EncodingSelector); 16371SetValueUnknown(HeaderNames.IfModifiedSince, value); 16379if (!TryGetUnknown(HeaderNames.IfNoneMatch, ref value)) 16388ValidateHeaderValueCharacters(HeaderNames.IfNoneMatch, value, EncodingSelector); 16389SetValueUnknown(HeaderNames.IfNoneMatch, value); 16397if (!TryGetUnknown(HeaderNames.IfRange, ref value)) 16406ValidateHeaderValueCharacters(HeaderNames.IfRange, value, EncodingSelector); 16407SetValueUnknown(HeaderNames.IfRange, value); 16415if (!TryGetUnknown(HeaderNames.IfUnmodifiedSince, ref value)) 16424ValidateHeaderValueCharacters(HeaderNames.IfUnmodifiedSince, value, EncodingSelector); 16425SetValueUnknown(HeaderNames.IfUnmodifiedSince, value); 16433if (!TryGetUnknown(HeaderNames.LastModified, ref value)) 16442ValidateHeaderValueCharacters(HeaderNames.LastModified, value, EncodingSelector); 16443SetValueUnknown(HeaderNames.LastModified, value); 16451if (!TryGetUnknown(HeaderNames.Link, ref value)) 16460ValidateHeaderValueCharacters(HeaderNames.Link, value, EncodingSelector); 16461SetValueUnknown(HeaderNames.Link, value); 16469if (!TryGetUnknown(HeaderNames.Location, ref value)) 16478ValidateHeaderValueCharacters(HeaderNames.Location, value, EncodingSelector); 16479SetValueUnknown(HeaderNames.Location, value); 16487if (!TryGetUnknown(HeaderNames.MaxForwards, ref value)) 16496ValidateHeaderValueCharacters(HeaderNames.MaxForwards, value, EncodingSelector); 16497SetValueUnknown(HeaderNames.MaxForwards, value); 16505if (!TryGetUnknown(HeaderNames.Origin, ref value)) 16514ValidateHeaderValueCharacters(HeaderNames.Origin, value, EncodingSelector); 16515SetValueUnknown(HeaderNames.Origin, value); 16523if (!TryGetUnknown(HeaderNames.Pragma, ref value)) 16532ValidateHeaderValueCharacters(HeaderNames.Pragma, value, EncodingSelector); 16533SetValueUnknown(HeaderNames.Pragma, value); 16541if (!TryGetUnknown(HeaderNames.ProxyAuthenticate, ref value)) 16550ValidateHeaderValueCharacters(HeaderNames.ProxyAuthenticate, value, EncodingSelector); 16551SetValueUnknown(HeaderNames.ProxyAuthenticate, value); 16559if (!TryGetUnknown(HeaderNames.ProxyAuthorization, ref value)) 16568ValidateHeaderValueCharacters(HeaderNames.ProxyAuthorization, value, EncodingSelector); 16569SetValueUnknown(HeaderNames.ProxyAuthorization, value); 16577if (!TryGetUnknown(HeaderNames.ProxyConnection, ref value)) 16586ValidateHeaderValueCharacters(HeaderNames.ProxyConnection, value, EncodingSelector); 16587SetValueUnknown(HeaderNames.ProxyConnection, value); 16595if (!TryGetUnknown(HeaderNames.Range, ref value)) 16604ValidateHeaderValueCharacters(HeaderNames.Range, value, EncodingSelector); 16605SetValueUnknown(HeaderNames.Range, value); 16613if (!TryGetUnknown(HeaderNames.Referer, ref value)) 16622ValidateHeaderValueCharacters(HeaderNames.Referer, value, EncodingSelector); 16623SetValueUnknown(HeaderNames.Referer, value); 16631if (!TryGetUnknown(HeaderNames.RetryAfter, ref value)) 16640ValidateHeaderValueCharacters(HeaderNames.RetryAfter, value, EncodingSelector); 16641SetValueUnknown(HeaderNames.RetryAfter, value); 16649if (!TryGetUnknown(HeaderNames.RequestId, ref value)) 16658ValidateHeaderValueCharacters(HeaderNames.RequestId, value, EncodingSelector); 16659SetValueUnknown(HeaderNames.RequestId, value); 16667if (!TryGetUnknown(HeaderNames.SecWebSocketAccept, ref value)) 16676ValidateHeaderValueCharacters(HeaderNames.SecWebSocketAccept, value, EncodingSelector); 16677SetValueUnknown(HeaderNames.SecWebSocketAccept, value); 16685if (!TryGetUnknown(HeaderNames.SecWebSocketKey, ref value)) 16694ValidateHeaderValueCharacters(HeaderNames.SecWebSocketKey, value, EncodingSelector); 16695SetValueUnknown(HeaderNames.SecWebSocketKey, value); 16703if (!TryGetUnknown(HeaderNames.SecWebSocketProtocol, ref value)) 16712ValidateHeaderValueCharacters(HeaderNames.SecWebSocketProtocol, value, EncodingSelector); 16713SetValueUnknown(HeaderNames.SecWebSocketProtocol, value); 16721if (!TryGetUnknown(HeaderNames.SecWebSocketVersion, ref value)) 16730ValidateHeaderValueCharacters(HeaderNames.SecWebSocketVersion, value, EncodingSelector); 16731SetValueUnknown(HeaderNames.SecWebSocketVersion, value); 16739if (!TryGetUnknown(HeaderNames.SecWebSocketExtensions, ref value)) 16748ValidateHeaderValueCharacters(HeaderNames.SecWebSocketExtensions, value, EncodingSelector); 16749SetValueUnknown(HeaderNames.SecWebSocketExtensions, value); 16757if (!TryGetUnknown(HeaderNames.Server, ref value)) 16766ValidateHeaderValueCharacters(HeaderNames.Server, value, EncodingSelector); 16767SetValueUnknown(HeaderNames.Server, value); 16775if (!TryGetUnknown(HeaderNames.SetCookie, ref value)) 16784ValidateHeaderValueCharacters(HeaderNames.SetCookie, value, EncodingSelector); 16785SetValueUnknown(HeaderNames.SetCookie, value); 16793if (!TryGetUnknown(HeaderNames.StrictTransportSecurity, ref value)) 16802ValidateHeaderValueCharacters(HeaderNames.StrictTransportSecurity, value, EncodingSelector); 16803SetValueUnknown(HeaderNames.StrictTransportSecurity, value); 16811if (!TryGetUnknown(HeaderNames.TE, ref value)) 16820ValidateHeaderValueCharacters(HeaderNames.TE, value, EncodingSelector); 16821SetValueUnknown(HeaderNames.TE, value); 16829if (!TryGetUnknown(HeaderNames.Trailer, ref value)) 16838ValidateHeaderValueCharacters(HeaderNames.Trailer, value, EncodingSelector); 16839SetValueUnknown(HeaderNames.Trailer, value); 16847if (!TryGetUnknown(HeaderNames.TransferEncoding, ref value)) 16856ValidateHeaderValueCharacters(HeaderNames.TransferEncoding, value, EncodingSelector); 16857SetValueUnknown(HeaderNames.TransferEncoding, value); 16865if (!TryGetUnknown(HeaderNames.Translate, ref value)) 16874ValidateHeaderValueCharacters(HeaderNames.Translate, value, EncodingSelector); 16875SetValueUnknown(HeaderNames.Translate, value); 16883if (!TryGetUnknown(HeaderNames.TraceParent, ref value)) 16892ValidateHeaderValueCharacters(HeaderNames.TraceParent, value, EncodingSelector); 16893SetValueUnknown(HeaderNames.TraceParent, value); 16901if (!TryGetUnknown(HeaderNames.TraceState, ref value)) 16910ValidateHeaderValueCharacters(HeaderNames.TraceState, value, EncodingSelector); 16911SetValueUnknown(HeaderNames.TraceState, value); 16919if (!TryGetUnknown(HeaderNames.Upgrade, ref value)) 16928ValidateHeaderValueCharacters(HeaderNames.Upgrade, value, EncodingSelector); 16929SetValueUnknown(HeaderNames.Upgrade, value); 16937if (!TryGetUnknown(HeaderNames.UpgradeInsecureRequests, ref value)) 16946ValidateHeaderValueCharacters(HeaderNames.UpgradeInsecureRequests, value, EncodingSelector); 16947SetValueUnknown(HeaderNames.UpgradeInsecureRequests, value); 16955if (!TryGetUnknown(HeaderNames.UserAgent, ref value)) 16964ValidateHeaderValueCharacters(HeaderNames.UserAgent, value, EncodingSelector); 16965SetValueUnknown(HeaderNames.UserAgent, value); 16973if (!TryGetUnknown(HeaderNames.Vary, ref value)) 16982ValidateHeaderValueCharacters(HeaderNames.Vary, value, EncodingSelector); 16983SetValueUnknown(HeaderNames.Vary, value); 16991if (!TryGetUnknown(HeaderNames.Via, ref value)) 17000ValidateHeaderValueCharacters(HeaderNames.Via, value, EncodingSelector); 17001SetValueUnknown(HeaderNames.Via, value); 17009if (!TryGetUnknown(HeaderNames.Warning, ref value)) 17018ValidateHeaderValueCharacters(HeaderNames.Warning, value, EncodingSelector); 17019SetValueUnknown(HeaderNames.Warning, value); 17027if (!TryGetUnknown(HeaderNames.WebSocketSubProtocols, ref value)) 17036ValidateHeaderValueCharacters(HeaderNames.WebSocketSubProtocols, value, EncodingSelector); 17037SetValueUnknown(HeaderNames.WebSocketSubProtocols, value); 17045if (!TryGetUnknown(HeaderNames.WWWAuthenticate, ref value)) 17054ValidateHeaderValueCharacters(HeaderNames.WWWAuthenticate, value, EncodingSelector); 17055SetValueUnknown(HeaderNames.WWWAuthenticate, value); 17063if (!TryGetUnknown(HeaderNames.XContentTypeOptions, ref value)) 17072ValidateHeaderValueCharacters(HeaderNames.XContentTypeOptions, value, EncodingSelector); 17073SetValueUnknown(HeaderNames.XContentTypeOptions, value); 17081if (!TryGetUnknown(HeaderNames.XFrameOptions, ref value)) 17090ValidateHeaderValueCharacters(HeaderNames.XFrameOptions, value, EncodingSelector); 17091SetValueUnknown(HeaderNames.XFrameOptions, value); 17099if (!TryGetUnknown(HeaderNames.XPoweredBy, ref value)) 17108ValidateHeaderValueCharacters(HeaderNames.XPoweredBy, value, EncodingSelector); 17109SetValueUnknown(HeaderNames.XPoweredBy, value); 17117if (!TryGetUnknown(HeaderNames.XRequestedWith, ref value)) 17126ValidateHeaderValueCharacters(HeaderNames.XRequestedWith, value, EncodingSelector); 17127SetValueUnknown(HeaderNames.XRequestedWith, value); 17135if (!TryGetUnknown(HeaderNames.XUACompatible, ref value)) 17144ValidateHeaderValueCharacters(HeaderNames.XUACompatible, value, EncodingSelector); 17145SetValueUnknown(HeaderNames.XUACompatible, value); 17153if (!TryGetUnknown(HeaderNames.XXSSProtection, ref value)) 17162ValidateHeaderValueCharacters(HeaderNames.XXSSProtection, value, EncodingSelector); 17163SetValueUnknown(HeaderNames.XXSSProtection, value); 17179if (ReferenceEquals(HeaderNames.ETag, key)) 17189if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 17202if (ReferenceEquals(HeaderNames.GrpcStatus, key)) 17212if (HeaderNames.GrpcStatus.Equals(key, StringComparison.OrdinalIgnoreCase)) 17225if (ReferenceEquals(HeaderNames.GrpcMessage, key)) 17235if (HeaderNames.GrpcMessage.Equals(key, StringComparison.OrdinalIgnoreCase)) 17258if (ReferenceEquals(HeaderNames.ETag, key)) 17265if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 17275if (ReferenceEquals(HeaderNames.GrpcStatus, key)) 17282if (HeaderNames.GrpcStatus.Equals(key, StringComparison.OrdinalIgnoreCase)) 17292if (ReferenceEquals(HeaderNames.GrpcMessage, key)) 17299if (HeaderNames.GrpcMessage.Equals(key, StringComparison.OrdinalIgnoreCase)) 17319if (ReferenceEquals(HeaderNames.ETag, key)) 17330if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 17344if (ReferenceEquals(HeaderNames.GrpcStatus, key)) 17355if (HeaderNames.GrpcStatus.Equals(key, StringComparison.OrdinalIgnoreCase)) 17369if (ReferenceEquals(HeaderNames.GrpcMessage, key)) 17380if (HeaderNames.GrpcMessage.Equals(key, StringComparison.OrdinalIgnoreCase)) 17403if (ReferenceEquals(HeaderNames.ETag, key)) 17414if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 17428if (ReferenceEquals(HeaderNames.GrpcStatus, key)) 17439if (HeaderNames.GrpcStatus.Equals(key, StringComparison.OrdinalIgnoreCase)) 17453if (ReferenceEquals(HeaderNames.GrpcMessage, key)) 17464if (HeaderNames.GrpcMessage.Equals(key, StringComparison.OrdinalIgnoreCase)) 17537array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ETag, _headers._ETag); 17546array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.GrpcMessage, _headers._GrpcMessage); 17555array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.GrpcStatus, _headers._GrpcStatus); 17564array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value)); 17590_current = new KeyValuePair<string, StringValues>(HeaderNames.ETag, _collection._headers._ETag); 17596_current = new KeyValuePair<string, StringValues>(HeaderNames.GrpcMessage, _collection._headers._GrpcMessage); 17602_current = new KeyValuePair<string, StringValues>(HeaderNames.GrpcStatus, _collection._headers._GrpcStatus);
Internal\Http\HttpProtocol.cs (3)
943((IHeaderDictionary)HttpRequestHeaders).TryGetValue(HeaderNames.Expect, out var expect) && 1168RejectInvalidHeaderForNonBodyResponse(appCompleted, HeaderNames.TransferEncoding); 1183RejectInvalidHeaderForNonBodyResponse(appCompleted, HeaderNames.ContentLength);
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
285ResponseHeaders.Connection = HeaderNames.Upgrade;
Internal\Http\HttpRequestHeaders.cs (2)
105KestrelBadHttpRequestException.Throw(RequestRejectionReason.InvalidContentLength, value.GetRequestHeaderString(HeaderNames.ContentLength, EncodingSelector, checkForNewlineChars: false)); 129KestrelBadHttpRequestException.Throw(RequestRejectionReason.InvalidContentLength, value.GetRequestHeaderString(HeaderNames.ContentLength, EncodingSelector, checkForNewlineChars: false));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (140)
Http1\Http1ConnectionTests.cs (5)
1026_http1Connection.RequestHeaders.Add(HeaderNames.ContentLength, contentLength); 1027_http1Connection.RequestHeaders.Add(HeaderNames.TransferEncoding, "chunked"); 1035Assert.True(_http1Connection.RequestHeaders.ContainsKey(HeaderNames.TransferEncoding)); 1036Assert.Equal("chunked", _http1Connection.RequestHeaders[HeaderNames.TransferEncoding]); 1037Assert.False(_http1Connection.RequestHeaders.ContainsKey(HeaderNames.ContentLength));
HttpRequestHeadersTests.cs (4)
670var acceptNameBytes = Encoding.ASCII.GetBytes(HeaderNames.Accept); 671var cookieNameBytes = Encoding.ASCII.GetBytes(HeaderNames.Cookie); 677if (ReferenceEquals(headerName, HeaderNames.Accept)) 699var contentLengthNameBytes = Encoding.ASCII.GetBytes(HeaderNames.ContentLength);
HttpUtilitiesTest.cs (2)
250HttpUtilities.GetRequestHeaderString(encodedBytes.AsSpan(), HeaderNames.Accept, selector, checkForNewlineChars: true)); 258HttpUtilities.GetRequestHeaderString(encodedBytes.AsSpan(), HeaderNames.Accept, selector, checkForNewlineChars: false);
src\Servers\Kestrel\shared\KnownHeaders.cs (127)
24HeaderNames.Allow, 25HeaderNames.AltSvc, 26HeaderNames.TransferEncoding, 27HeaderNames.ContentLength, 28HeaderNames.Connection, 34HeaderNames.Host, 37public static readonly string[] DefinedHeaderNames = typeof(HeaderNames) 46HeaderNames.DNT, 94HeaderNames.Accept, 95HeaderNames.Connection, 96HeaderNames.Host, 97HeaderNames.UserAgent 101HeaderNames.Connection, 102HeaderNames.Date, 103HeaderNames.ContentType, 104HeaderNames.Server, 105HeaderNames.ContentLength, 109HeaderNames.CacheControl, 110HeaderNames.Connection, 111HeaderNames.Date, 112HeaderNames.GrpcEncoding, 113HeaderNames.KeepAlive, 114HeaderNames.Pragma, 115HeaderNames.TransferEncoding, 116HeaderNames.Upgrade, 117HeaderNames.Via, 118HeaderNames.Warning, 119HeaderNames.ContentType, 124HeaderNames.Origin, 125HeaderNames.AccessControlRequestMethod, 126HeaderNames.AccessControlRequestHeaders, 130HeaderNames.Cookie, 131HeaderNames.Connection, 132HeaderNames.TransferEncoding, 136HeaderNames.Host 144HeaderNames.Accept, 145HeaderNames.AcceptCharset, 146HeaderNames.AcceptEncoding, 147HeaderNames.AcceptLanguage, 149HeaderNames.Authorization, 150HeaderNames.Cookie, 151HeaderNames.Expect, 152HeaderNames.From, 153HeaderNames.GrpcAcceptEncoding, 154HeaderNames.GrpcTimeout, 155HeaderNames.Host, 156HeaderNames.IfMatch, 157HeaderNames.IfModifiedSince, 158HeaderNames.IfNoneMatch, 159HeaderNames.IfRange, 160HeaderNames.IfUnmodifiedSince, 161HeaderNames.MaxForwards, 163HeaderNames.ProxyAuthorization, 164HeaderNames.Referer, 165HeaderNames.Range, 166HeaderNames.TE, 167HeaderNames.Translate, 168HeaderNames.UserAgent, 169HeaderNames.UpgradeInsecureRequests, 170HeaderNames.RequestId, 171HeaderNames.CorrelationContext, 172HeaderNames.TraceParent, 173HeaderNames.TraceState, 174HeaderNames.Baggage, 191Name = HeaderNames.ContentLength, 193PrimaryHeader = requestPrimaryHeaders.Contains(HeaderNames.ContentLength) 199HeaderNames.Connection, 200HeaderNames.Server, 201HeaderNames.Date, 202HeaderNames.TransferEncoding, 203HeaderNames.AltSvc 207HeaderNames.Connection, 208HeaderNames.Server, 209HeaderNames.Date, 210HeaderNames.TransferEncoding, 211HeaderNames.AltSvc 216HeaderNames.AccessControlAllowCredentials, 217HeaderNames.AccessControlAllowHeaders, 218HeaderNames.AccessControlAllowMethods, 219HeaderNames.AccessControlAllowOrigin, 220HeaderNames.AccessControlExposeHeaders, 221HeaderNames.AccessControlMaxAge, 225HeaderNames.AcceptRanges, 226HeaderNames.Age, 227HeaderNames.Allow, 228HeaderNames.AltSvc, 229HeaderNames.ETag, 230HeaderNames.Location, 231HeaderNames.ProxyAuthenticate, 232HeaderNames.ProxyConnection, 233HeaderNames.RetryAfter, 234HeaderNames.Server, 235HeaderNames.SetCookie, 236HeaderNames.Vary, 237HeaderNames.Expires, 238HeaderNames.WWWAuthenticate, 239HeaderNames.ContentRange, 240HeaderNames.ContentEncoding, 241HeaderNames.ContentLanguage, 242HeaderNames.ContentLocation, 243HeaderNames.ContentMD5, 244HeaderNames.LastModified, 245HeaderNames.Trailer, 262Name = HeaderNames.ContentLength, 264EnhancedSetter = enhancedHeaders.Contains(HeaderNames.ContentLength), 265PrimaryHeader = responsePrimaryHeaders.Contains(HeaderNames.ContentLength) 271HeaderNames.ETag, 272HeaderNames.GrpcMessage, 273HeaderNames.GrpcStatus 290HeaderNames.Connection, 291HeaderNames.TransferEncoding, 292HeaderNames.KeepAlive, 293HeaderNames.Upgrade, 294HeaderNames.ProxyConnection 378if (header.Name == HeaderNames.ContentLength) 420if (header.Name == HeaderNames.ContentLength) 869public {(header.Name == HeaderNames.Connection ? "override " : "")}StringValues Header{header.Identifier} 870{{{(header.Name == HeaderNames.ContentLength ? $@" 906{Each(loop.Headers.Where(header => header.Name != HeaderNames.ContentLength && !NonApiHeaders.Contains(header.Identifier)), header => $@" 976{{{(header.Name == HeaderNames.ContentLength ? @" 992{{{(header.Name == HeaderNames.ContentLength ? @" 1021{{{(header.Name == HeaderNames.ContentLength ? $@" 1030{{{(header.Name == HeaderNames.ContentLength ? $@" 1052{{{(header.Name == HeaderNames.ContentLength ? $@" 1070{{{(header.Name == HeaderNames.ContentLength ? $@" 1100{{{(header.Name == HeaderNames.ContentLength ? @" 1118{{{(header.Name == HeaderNames.ContentLength ? @"
UTF8Decoding.cs (2)
21var s = HttpUtilities.GetRequestHeaderString(encodedBytes.AsSpan(), HeaderNames.Accept, KestrelServerOptions.DefaultHeaderEncodingSelector, checkForNewlineChars: false); 40HttpUtilities.GetRequestHeaderString(byteRange.AsSpan(), HeaderNames.Accept, KestrelServerOptions.DefaultHeaderEncodingSelector, checkForNewlineChars: false));
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (8)
BytesToStringBenchmark.cs (4)
33_headerName = HeaderNames.Connection; 40_headerName = HeaderNames.Accept; 47_headerName = HeaderNames.UserAgent; 54_headerName = HeaderNames.Cookie;
HeaderCollectionBenchmark.cs (2)
110_response.Headers[HeaderNames.ContentLength] = "0"; 227value = _response.Headers[HeaderNames.ContentLength];
Http2\Http2ConnectionBenchmarkBase.cs (1)
65_httpRequestHeaders[HeaderNames.Cookie] = cookies;
ResponseHeaderCollectionBenchmark.cs (1)
88_response.Headers[HeaderNames.ContentLength] = "0";
Microsoft.AspNetCore.Shared.Tests (355)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (30)
23HeaderNames.CacheControl, 24HeaderNames.Connection, 25HeaderNames.Date, 26HeaderNames.KeepAlive, 27HeaderNames.Pragma, 28HeaderNames.Trailer, 29HeaderNames.TransferEncoding, 30HeaderNames.Upgrade, 31HeaderNames.Via, 32HeaderNames.Warning, 34HeaderNames.Allow, 35HeaderNames.ContentLength, 36HeaderNames.ContentType, 37HeaderNames.ContentEncoding, 38HeaderNames.ContentLanguage, 39HeaderNames.ContentLocation, 40HeaderNames.ContentMD5, 41HeaderNames.ContentRange, 42HeaderNames.Expires, 43HeaderNames.LastModified, 45HeaderNames.AcceptRanges, 46HeaderNames.Age, 47HeaderNames.ETag, 48HeaderNames.Location, 49HeaderNames.ProxyAuthenticate, 50HeaderNames.RetryAfter, 51HeaderNames.Server, 52HeaderNames.SetCookie, 53HeaderNames.Vary, 54HeaderNames.WWWAuthenticate,
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (35)
22HeaderNames.TransferEncoding, HeaderNames.ContentLength, 25HeaderNames.Host, 29HeaderNames.CacheControl, HeaderNames.Expect, HeaderNames.MaxForwards, HeaderNames.Pragma, HeaderNames.Range, HeaderNames.TE, 32HeaderNames.IfMatch, HeaderNames.IfNoneMatch, HeaderNames.IfModifiedSince, HeaderNames.IfUnmodifiedSince, HeaderNames.IfRange, 35HeaderNames.WWWAuthenticate, HeaderNames.Authorization, HeaderNames.ProxyAuthenticate, HeaderNames.ProxyAuthorization, HeaderNames.SetCookie, HeaderNames.Cookie, 39HeaderNames.Age, HeaderNames.Expires, HeaderNames.Date, HeaderNames.Location, HeaderNames.RetryAfter, HeaderNames.Vary, HeaderNames.Warning, 42HeaderNames.ContentEncoding, HeaderNames.ContentType, HeaderNames.ContentRange, HeaderNames.Trailer 123var rawValue = this[HeaderNames.ContentLength]; 143ValidateRestrictedTrailers(HeaderNames.ContentLength); 153this[HeaderNames.ContentLength] = _contentLengthText; 158Remove(HeaderNames.ContentLength);
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (3)
179var rawValue = this[HeaderNames.ContentLength]; 208this[HeaderNames.ContentLength] = _contentLengthText; 213Remove(HeaderNames.ContentLength);
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (287)
1051if (string.Equals(key, HeaderNames.TE, StringComparison.OrdinalIgnoreCase)) 1057if (string.Equals(key, HeaderNames.Via, StringComparison.OrdinalIgnoreCase)) 1063if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1067if (string.Equals(key, HeaderNames.From, StringComparison.OrdinalIgnoreCase)) 1071if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1077if (string.Equals(key, HeaderNames.Allow, StringComparison.OrdinalIgnoreCase)) 1081if (string.Equals(key, HeaderNames.Range, StringComparison.OrdinalIgnoreCase)) 1087if (string.Equals(key, HeaderNames.Accept, StringComparison.OrdinalIgnoreCase)) 1091if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1095if (string.Equals(key, HeaderNames.Expect, StringComparison.OrdinalIgnoreCase)) 1099if (string.Equals(key, HeaderNames.Pragma, StringComparison.OrdinalIgnoreCase)) 1105if (string.Equals(key, HeaderNames.Expires, StringComparison.OrdinalIgnoreCase)) 1109if (string.Equals(key, HeaderNames.Referer, StringComparison.OrdinalIgnoreCase)) 1113if (string.Equals(key, HeaderNames.Trailer, StringComparison.OrdinalIgnoreCase)) 1117if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1121if (string.Equals(key, HeaderNames.Warning, StringComparison.OrdinalIgnoreCase)) 1127if (string.Equals(key, HeaderNames.IfMatch, StringComparison.OrdinalIgnoreCase)) 1131if (string.Equals(key, HeaderNames.IfRange, StringComparison.OrdinalIgnoreCase)) 1137if (string.Equals(key, HeaderNames.Translate, StringComparison.OrdinalIgnoreCase)) 1143if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1147if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.OrdinalIgnoreCase)) 1151if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1157if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.OrdinalIgnoreCase)) 1163if (string.Equals(key, HeaderNames.ContentType, StringComparison.OrdinalIgnoreCase)) 1167if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.OrdinalIgnoreCase)) 1173if (string.Equals(key, HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase)) 1177if (string.Equals(key, HeaderNames.CacheControl, StringComparison.OrdinalIgnoreCase)) 1181if (string.Equals(key, HeaderNames.ContentRange, StringComparison.OrdinalIgnoreCase)) 1185if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.OrdinalIgnoreCase)) 1189if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1195if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.OrdinalIgnoreCase)) 1199if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase)) 1205if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1209if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1215if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1219if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.OrdinalIgnoreCase)) 1223if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.OrdinalIgnoreCase)) 1229if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.OrdinalIgnoreCase)) 1233if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.OrdinalIgnoreCase)) 1239if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.OrdinalIgnoreCase)) 1243if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.OrdinalIgnoreCase)) 1257if (string.Equals(key, HeaderNames.TE, StringComparison.OrdinalIgnoreCase)) 1264if (string.Equals(key, HeaderNames.Via, StringComparison.OrdinalIgnoreCase)) 1271if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1276if (string.Equals(key, HeaderNames.From, StringComparison.OrdinalIgnoreCase)) 1281if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1288if (string.Equals(key, HeaderNames.Allow, StringComparison.OrdinalIgnoreCase)) 1293if (string.Equals(key, HeaderNames.Range, StringComparison.OrdinalIgnoreCase)) 1300if (string.Equals(key, HeaderNames.Accept, StringComparison.OrdinalIgnoreCase)) 1305if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1310if (string.Equals(key, HeaderNames.Expect, StringComparison.OrdinalIgnoreCase)) 1315if (string.Equals(key, HeaderNames.Pragma, StringComparison.OrdinalIgnoreCase)) 1322if (string.Equals(key, HeaderNames.Expires, StringComparison.OrdinalIgnoreCase)) 1327if (string.Equals(key, HeaderNames.Referer, StringComparison.OrdinalIgnoreCase)) 1332if (string.Equals(key, HeaderNames.Trailer, StringComparison.OrdinalIgnoreCase)) 1337if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1342if (string.Equals(key, HeaderNames.Warning, StringComparison.OrdinalIgnoreCase)) 1349if (string.Equals(key, HeaderNames.IfMatch, StringComparison.OrdinalIgnoreCase)) 1354if (string.Equals(key, HeaderNames.IfRange, StringComparison.OrdinalIgnoreCase)) 1361if (string.Equals(key, HeaderNames.Translate, StringComparison.OrdinalIgnoreCase)) 1368if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1373if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.OrdinalIgnoreCase)) 1378if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1385if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.OrdinalIgnoreCase)) 1392if (string.Equals(key, HeaderNames.ContentType, StringComparison.OrdinalIgnoreCase)) 1397if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.OrdinalIgnoreCase)) 1404if (string.Equals(key, HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase)) 1409if (string.Equals(key, HeaderNames.CacheControl, StringComparison.OrdinalIgnoreCase)) 1414if (string.Equals(key, HeaderNames.ContentRange, StringComparison.OrdinalIgnoreCase)) 1419if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.OrdinalIgnoreCase)) 1424if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1431if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.OrdinalIgnoreCase)) 1436if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase)) 1443if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1448if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1455if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1460if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.OrdinalIgnoreCase)) 1465if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.OrdinalIgnoreCase)) 1472if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.OrdinalIgnoreCase)) 1477if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.OrdinalIgnoreCase)) 1484if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.OrdinalIgnoreCase)) 1489if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.OrdinalIgnoreCase)) 1505if (string.Equals(key, HeaderNames.TE, StringComparison.OrdinalIgnoreCase)) 1512if (string.Equals(key, HeaderNames.Via, StringComparison.OrdinalIgnoreCase)) 1519if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1524if (string.Equals(key, HeaderNames.From, StringComparison.OrdinalIgnoreCase)) 1529if (string.Equals(key, HeaderNames.Host, StringComparison.OrdinalIgnoreCase)) 1536if (string.Equals(key, HeaderNames.Allow, StringComparison.OrdinalIgnoreCase)) 1541if (string.Equals(key, HeaderNames.Range, StringComparison.OrdinalIgnoreCase)) 1548if (string.Equals(key, HeaderNames.Accept, StringComparison.OrdinalIgnoreCase)) 1553if (string.Equals(key, HeaderNames.Cookie, StringComparison.OrdinalIgnoreCase)) 1558if (string.Equals(key, HeaderNames.Expect, StringComparison.OrdinalIgnoreCase)) 1563if (string.Equals(key, HeaderNames.Pragma, StringComparison.OrdinalIgnoreCase)) 1570if (string.Equals(key, HeaderNames.Expires, StringComparison.OrdinalIgnoreCase)) 1575if (string.Equals(key, HeaderNames.Referer, StringComparison.OrdinalIgnoreCase)) 1580if (string.Equals(key, HeaderNames.Trailer, StringComparison.OrdinalIgnoreCase)) 1585if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1590if (string.Equals(key, HeaderNames.Warning, StringComparison.OrdinalIgnoreCase)) 1597if (string.Equals(key, HeaderNames.IfMatch, StringComparison.OrdinalIgnoreCase)) 1602if (string.Equals(key, HeaderNames.IfRange, StringComparison.OrdinalIgnoreCase)) 1609if (string.Equals(key, HeaderNames.Translate, StringComparison.OrdinalIgnoreCase)) 1616if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1621if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.OrdinalIgnoreCase)) 1626if (string.Equals(key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase)) 1633if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.OrdinalIgnoreCase)) 1640if (string.Equals(key, HeaderNames.ContentType, StringComparison.OrdinalIgnoreCase)) 1645if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.OrdinalIgnoreCase)) 1652if (string.Equals(key, HeaderNames.Authorization, StringComparison.OrdinalIgnoreCase)) 1657if (string.Equals(key, HeaderNames.CacheControl, StringComparison.OrdinalIgnoreCase)) 1662if (string.Equals(key, HeaderNames.ContentRange, StringComparison.OrdinalIgnoreCase)) 1667if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.OrdinalIgnoreCase)) 1672if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1679if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.OrdinalIgnoreCase)) 1684if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase)) 1691if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.OrdinalIgnoreCase)) 1696if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.OrdinalIgnoreCase)) 1703if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 1708if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.OrdinalIgnoreCase)) 1713if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.OrdinalIgnoreCase)) 1720if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.OrdinalIgnoreCase)) 1725if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.OrdinalIgnoreCase)) 1732if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.OrdinalIgnoreCase)) 1737if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.OrdinalIgnoreCase)) 1752if (string.Equals(key, HeaderNames.TE, StringComparison.Ordinal)) 1764if (string.Equals(key, HeaderNames.Via, StringComparison.Ordinal)) 1776if (string.Equals(key, HeaderNames.Date, StringComparison.Ordinal)) 1786if (string.Equals(key, HeaderNames.From, StringComparison.Ordinal)) 1796if (string.Equals(key, HeaderNames.Host, StringComparison.Ordinal)) 1808if (string.Equals(key, HeaderNames.Allow, StringComparison.Ordinal)) 1818if (string.Equals(key, HeaderNames.Range, StringComparison.Ordinal)) 1830if (string.Equals(key, HeaderNames.Accept, StringComparison.Ordinal)) 1840if (string.Equals(key, HeaderNames.Cookie, StringComparison.Ordinal)) 1850if (string.Equals(key, HeaderNames.Expect, StringComparison.Ordinal)) 1860if (string.Equals(key, HeaderNames.Pragma, StringComparison.Ordinal)) 1872if (string.Equals(key, HeaderNames.Expires, StringComparison.Ordinal)) 1882if (string.Equals(key, HeaderNames.Referer, StringComparison.Ordinal)) 1892if (string.Equals(key, HeaderNames.Trailer, StringComparison.Ordinal)) 1902if (string.Equals(key, HeaderNames.Upgrade, StringComparison.Ordinal)) 1912if (string.Equals(key, HeaderNames.Warning, StringComparison.Ordinal)) 1924if (string.Equals(key, HeaderNames.IfMatch, StringComparison.Ordinal)) 1934if (string.Equals(key, HeaderNames.IfRange, StringComparison.Ordinal)) 1946if (string.Equals(key, HeaderNames.Translate, StringComparison.Ordinal)) 1958if (string.Equals(key, HeaderNames.Connection, StringComparison.Ordinal)) 1968if (string.Equals(key, HeaderNames.KeepAlive, StringComparison.Ordinal)) 1978if (string.Equals(key, HeaderNames.UserAgent, StringComparison.Ordinal)) 1990if (string.Equals(key, HeaderNames.ContentMD5, StringComparison.Ordinal)) 2002if (string.Equals(key, HeaderNames.ContentType, StringComparison.Ordinal)) 2012if (string.Equals(key, HeaderNames.MaxForwards, StringComparison.Ordinal)) 2024if (string.Equals(key, HeaderNames.Authorization, StringComparison.Ordinal)) 2034if (string.Equals(key, HeaderNames.CacheControl, StringComparison.Ordinal)) 2044if (string.Equals(key, HeaderNames.ContentRange, StringComparison.Ordinal)) 2054if (string.Equals(key, HeaderNames.IfNoneMatch, StringComparison.Ordinal)) 2064if (string.Equals(key, HeaderNames.LastModified, StringComparison.Ordinal)) 2076if (string.Equals(key, HeaderNames.AcceptCharset, StringComparison.Ordinal)) 2086if (string.Equals(key, HeaderNames.ContentLength, StringComparison.Ordinal)) 2098if (string.Equals(key, HeaderNames.AcceptEncoding, StringComparison.Ordinal)) 2108if (string.Equals(key, HeaderNames.AcceptLanguage, StringComparison.Ordinal)) 2120if (string.Equals(key, HeaderNames.ContentEncoding, StringComparison.Ordinal)) 2130if (string.Equals(key, HeaderNames.ContentLanguage, StringComparison.Ordinal)) 2140if (string.Equals(key, HeaderNames.ContentLocation, StringComparison.Ordinal)) 2152if (string.Equals(key, HeaderNames.IfModifiedSince, StringComparison.Ordinal)) 2162if (string.Equals(key, HeaderNames.TransferEncoding, StringComparison.Ordinal)) 2174if (string.Equals(key, HeaderNames.IfUnmodifiedSince, StringComparison.Ordinal)) 2184if (string.Equals(key, HeaderNames.ProxyAuthorization, StringComparison.Ordinal)) 2203yield return HeaderNames.Accept; 2207yield return HeaderNames.AcceptCharset; 2211yield return HeaderNames.AcceptEncoding; 2215yield return HeaderNames.AcceptLanguage; 2219yield return HeaderNames.Allow; 2223yield return HeaderNames.Authorization; 2227yield return HeaderNames.CacheControl; 2231yield return HeaderNames.Connection; 2235yield return HeaderNames.ContentEncoding; 2239yield return HeaderNames.ContentLanguage; 2243yield return HeaderNames.ContentLength; 2247yield return HeaderNames.ContentLocation; 2251yield return HeaderNames.ContentMD5; 2255yield return HeaderNames.ContentRange; 2259yield return HeaderNames.ContentType; 2263yield return HeaderNames.Cookie; 2267yield return HeaderNames.Date; 2271yield return HeaderNames.Expect; 2275yield return HeaderNames.Expires; 2279yield return HeaderNames.From; 2283yield return HeaderNames.Host; 2287yield return HeaderNames.IfMatch; 2291yield return HeaderNames.IfModifiedSince; 2295yield return HeaderNames.IfNoneMatch; 2299yield return HeaderNames.IfRange; 2303yield return HeaderNames.IfUnmodifiedSince; 2307yield return HeaderNames.KeepAlive; 2311yield return HeaderNames.LastModified; 2315yield return HeaderNames.MaxForwards; 2319yield return HeaderNames.Pragma; 2323yield return HeaderNames.ProxyAuthorization; 2327yield return HeaderNames.Range; 2331yield return HeaderNames.Referer; 2335yield return HeaderNames.TE; 2339yield return HeaderNames.Trailer; 2343yield return HeaderNames.TransferEncoding; 2347yield return HeaderNames.Translate; 2351yield return HeaderNames.Upgrade; 2355yield return HeaderNames.UserAgent; 2359yield return HeaderNames.Via; 2363yield return HeaderNames.Warning; 2539yield return new KeyValuePair<string, StringValues>(HeaderNames.Accept, Accept); 2543yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptCharset, AcceptCharset); 2547yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptEncoding, AcceptEncoding); 2551yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptLanguage, AcceptLanguage); 2555yield return new KeyValuePair<string, StringValues>(HeaderNames.Allow, Allow); 2559yield return new KeyValuePair<string, StringValues>(HeaderNames.Authorization, Authorization); 2563yield return new KeyValuePair<string, StringValues>(HeaderNames.CacheControl, CacheControl); 2567yield return new KeyValuePair<string, StringValues>(HeaderNames.Connection, Connection); 2571yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentEncoding, ContentEncoding); 2575yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLanguage, ContentLanguage); 2579yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, ContentLength); 2583yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLocation, ContentLocation); 2587yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentMD5, ContentMD5); 2591yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentRange, ContentRange); 2595yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentType, ContentType); 2599yield return new KeyValuePair<string, StringValues>(HeaderNames.Cookie, Cookie); 2603yield return new KeyValuePair<string, StringValues>(HeaderNames.Date, Date); 2607yield return new KeyValuePair<string, StringValues>(HeaderNames.Expect, Expect); 2611yield return new KeyValuePair<string, StringValues>(HeaderNames.Expires, Expires); 2615yield return new KeyValuePair<string, StringValues>(HeaderNames.From, From); 2619yield return new KeyValuePair<string, StringValues>(HeaderNames.Host, Host); 2623yield return new KeyValuePair<string, StringValues>(HeaderNames.IfMatch, IfMatch); 2627yield return new KeyValuePair<string, StringValues>(HeaderNames.IfModifiedSince, IfModifiedSince); 2631yield return new KeyValuePair<string, StringValues>(HeaderNames.IfNoneMatch, IfNoneMatch); 2635yield return new KeyValuePair<string, StringValues>(HeaderNames.IfRange, IfRange); 2639yield return new KeyValuePair<string, StringValues>(HeaderNames.IfUnmodifiedSince, IfUnmodifiedSince); 2643yield return new KeyValuePair<string, StringValues>(HeaderNames.KeepAlive, KeepAlive); 2647yield return new KeyValuePair<string, StringValues>(HeaderNames.LastModified, LastModified); 2651yield return new KeyValuePair<string, StringValues>(HeaderNames.MaxForwards, MaxForwards); 2655yield return new KeyValuePair<string, StringValues>(HeaderNames.Pragma, Pragma); 2659yield return new KeyValuePair<string, StringValues>(HeaderNames.ProxyAuthorization, ProxyAuthorization); 2663yield return new KeyValuePair<string, StringValues>(HeaderNames.Range, Range); 2667yield return new KeyValuePair<string, StringValues>(HeaderNames.Referer, Referer); 2671yield return new KeyValuePair<string, StringValues>(HeaderNames.TE, TE); 2675yield return new KeyValuePair<string, StringValues>(HeaderNames.Trailer, Trailer); 2679yield return new KeyValuePair<string, StringValues>(HeaderNames.TransferEncoding, TransferEncoding); 2683yield return new KeyValuePair<string, StringValues>(HeaderNames.Translate, Translate); 2687yield return new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, Upgrade); 2691yield return new KeyValuePair<string, StringValues>(HeaderNames.UserAgent, UserAgent); 2695yield return new KeyValuePair<string, StringValues>(HeaderNames.Via, Via); 2699yield return new KeyValuePair<string, StringValues>(HeaderNames.Warning, Warning); 2750HttpSysRequestHeader.Accept => HeaderNames.Accept, 2751HttpSysRequestHeader.AcceptCharset => HeaderNames.AcceptCharset, 2752HttpSysRequestHeader.AcceptEncoding => HeaderNames.AcceptEncoding, 2753HttpSysRequestHeader.AcceptLanguage => HeaderNames.AcceptLanguage, 2754HttpSysRequestHeader.Allow => HeaderNames.Allow, 2755HttpSysRequestHeader.Authorization => HeaderNames.Authorization, 2756HttpSysRequestHeader.CacheControl => HeaderNames.CacheControl, 2757HttpSysRequestHeader.Connection => HeaderNames.Connection, 2758HttpSysRequestHeader.ContentEncoding => HeaderNames.ContentEncoding, 2759HttpSysRequestHeader.ContentLanguage => HeaderNames.ContentLanguage, 2760HttpSysRequestHeader.ContentLength => HeaderNames.ContentLength, 2761HttpSysRequestHeader.ContentLocation => HeaderNames.ContentLocation, 2762HttpSysRequestHeader.ContentMd5 => HeaderNames.ContentMD5, 2763HttpSysRequestHeader.ContentRange => HeaderNames.ContentRange, 2764HttpSysRequestHeader.ContentType => HeaderNames.ContentType, 2765HttpSysRequestHeader.Cookie => HeaderNames.Cookie, 2766HttpSysRequestHeader.Date => HeaderNames.Date, 2767HttpSysRequestHeader.Expect => HeaderNames.Expect, 2768HttpSysRequestHeader.Expires => HeaderNames.Expires, 2769HttpSysRequestHeader.From => HeaderNames.From, 2770HttpSysRequestHeader.Host => HeaderNames.Host, 2771HttpSysRequestHeader.IfMatch => HeaderNames.IfMatch, 2772HttpSysRequestHeader.IfModifiedSince => HeaderNames.IfModifiedSince, 2773HttpSysRequestHeader.IfNoneMatch => HeaderNames.IfNoneMatch, 2774HttpSysRequestHeader.IfRange => HeaderNames.IfRange, 2775HttpSysRequestHeader.IfUnmodifiedSince => HeaderNames.IfUnmodifiedSince, 2776HttpSysRequestHeader.KeepAlive => HeaderNames.KeepAlive, 2777HttpSysRequestHeader.LastModified => HeaderNames.LastModified, 2778HttpSysRequestHeader.MaxForwards => HeaderNames.MaxForwards, 2779HttpSysRequestHeader.Pragma => HeaderNames.Pragma, 2780HttpSysRequestHeader.ProxyAuthorization => HeaderNames.ProxyAuthorization, 2781HttpSysRequestHeader.Range => HeaderNames.Range, 2782HttpSysRequestHeader.Referer => HeaderNames.Referer, 2783HttpSysRequestHeader.Te => HeaderNames.TE, 2784HttpSysRequestHeader.Trailer => HeaderNames.Trailer, 2785HttpSysRequestHeader.TransferEncoding => HeaderNames.TransferEncoding, 2786HttpSysRequestHeader.Translate => HeaderNames.Translate, 2787HttpSysRequestHeader.Upgrade => HeaderNames.Upgrade, 2788HttpSysRequestHeader.UserAgent => HeaderNames.UserAgent, 2789HttpSysRequestHeader.Via => HeaderNames.Via, 2790HttpSysRequestHeader.Warning => HeaderNames.Warning,
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HttpConnectionTests.Transport.cs (1)
167var requestedWithHeader = request.Headers.GetValues(HeaderNames.XRequestedWith);
Microsoft.AspNetCore.SignalR.Tests (1)
WebSocketsTransportTests.cs (1)
143await webSocketsTransport.Output.WriteAsync(Encoding.UTF8.GetBytes(HeaderNames.XRequestedWith));
Microsoft.AspNetCore.SpaProxy (1)
SpaProxyMiddleware.cs (1)
55context.Response.Headers[HeaderNames.CacheControl] = "no-cache, no-store, must-revalidate, max-age=0";
Microsoft.AspNetCore.StaticAssets (7)
Development\StaticAssetDescriptorExtensions.cs (5)
16if (string.Equals(header.Name, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase)) 29if (string.Equals(header.Name, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 42if (string.Equals(header.Name, HeaderNames.ETag, StringComparison.OrdinalIgnoreCase)) 59if (string.Equals(selector.Name, HeaderNames.ContentEncoding, StringComparison.OrdinalIgnoreCase)) 72if (string.Equals(header.Name, HeaderNames.ETag, StringComparison.OrdinalIgnoreCase))
Development\StaticAssetDevelopmentRuntimeHandler.cs (2)
261if (string.Equals(responseHeader.Name, HeaderNames.CacheControl, StringComparison.OrdinalIgnoreCase)) 266responseHeaders.Insert(i, new StaticAssetResponseHeader(HeaderNames.CacheControl, "no-cache"));
Microsoft.AspNetCore.TestHost (7)
ClientHandler.cs (2)
142requestContent.Headers.Remove(HeaderNames.ContentLength); 160if (string.Equals(header.Key, HeaderNames.UserAgent, StringComparison.OrdinalIgnoreCase))
WebSocketClient.cs (5)
79request.Headers.Add(HeaderNames.Connection, new string[] { "Upgrade" }); 80request.Headers.Add(HeaderNames.Upgrade, new string[] { "websocket" }); 81request.Headers.Add(HeaderNames.SecWebSocketVersion, new string[] { "13" }); 82request.Headers.Add(HeaderNames.SecWebSocketKey, new string[] { CreateRequestKey() }); 85request.Headers.Add(HeaderNames.SecWebSocketProtocol, SubProtocols.ToArray());
Microsoft.AspNetCore.TestHost.Tests (4)
ClientHandlerTests.cs (3)
121httpClient.DefaultRequestHeaders.Add(HeaderNames.UserAgent, userAgent); 134Assert.False(context.Request.Headers.ContainsKey(HeaderNames.TransferEncoding)); 151Assert.False(context.Request.Headers.ContainsKey(HeaderNames.TransferEncoding));
TestClientTests.cs (1)
582Assert.False(ctx.Request.Headers.ContainsKey(HeaderNames.SecWebSocketProtocol));
Microsoft.AspNetCore.WebSockets (7)
HandshakeHelpers.cs (1)
24responseHeaders.Connection = HeaderNames.Upgrade;
WebSocketMiddleware.cs (6)
174foreach (var extension in _context.Request.Headers.GetCommaSeparatedValues(HeaderNames.SecWebSocketExtensions)) 241var values = requestHeaders.GetCommaSeparatedValues(HeaderNames.Upgrade); 261values = requestHeaders.GetCommaSeparatedValues(HeaderNames.Connection); 264if (string.Equals(value, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 269requestHeaders.Connection = HeaderNames.Upgrade; 302var values = requestHeaders.GetCommaSeparatedValues(HeaderNames.SecWebSocketVersion);
Microsoft.AspNetCore.WebSockets.Tests (19)
Http2WebSocketTests.cs (3)
52Assert.False(headers.TryGetValue(HeaderNames.Connection, out var _)); 53Assert.False(headers.TryGetValue(HeaderNames.Upgrade, out var _)); 54Assert.False(headers.TryGetValue(HeaderNames.SecWebSocketAccept, out var _));
WebSocketCompressionMiddlewareTests.cs (8)
37request.Headers.Add(HeaderNames.SecWebSocketExtensions, "permessage-deflate"); 41Assert.Equal("permessage-deflate; server_no_context_takeover", response.Headers.GetValues(HeaderNames.SecWebSocketExtensions).Aggregate((l, r) => $"{l}; {r}")); 65request.Headers.Add(HeaderNames.SecWebSocketExtensions, "permessage-deflate"); 69Assert.False(response.Headers.Contains(HeaderNames.SecWebSocketExtensions)); 99request.Headers.Add(HeaderNames.SecWebSocketExtensions, clientHeader); 103Assert.Equal(expectedResponse, response.Headers.GetValues(HeaderNames.SecWebSocketExtensions).Aggregate((l, r) => $"{l}; {r}")); 174request.Headers.Add(HeaderNames.SecWebSocketVersion, "13"); 176request.Headers.Add(HeaderNames.SecWebSocketKey, Convert.ToBase64String(new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }, Base64FormattingOptions.None));
WebSocketMiddlewareTests.cs (8)
680request.Headers.Add(HeaderNames.SecWebSocketVersion, "13"); 682request.Headers.Add(HeaderNames.SecWebSocketKey, Convert.ToBase64String(new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }, Base64FormattingOptions.None)); 684request.Headers.Add(HeaderNames.Origin, "http://example.com"); 728Assert.Same(HeaderNames.Upgrade, context.Request.Headers.Connection.ToString()); 765request.Headers.Add(HeaderNames.SecWebSocketVersion, "13"); 767request.Headers.Add(HeaderNames.SecWebSocketKey, Convert.ToBase64String(new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }, Base64FormattingOptions.None)); 836request.Headers.Add(HeaderNames.SecWebSocketVersion, "13"); 838request.Headers.Add(HeaderNames.SecWebSocketKey, Convert.ToBase64String(new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }, Base64FormattingOptions.None));
Microsoft.AspNetCore.WebUtilities (2)
MultipartSection.cs (2)
21if (Headers != null && Headers.TryGetValue(HeaderNames.ContentType, out var values)) 36if (Headers != null && Headers.TryGetValue(HeaderNames.ContentDisposition, out var values))
ServerComparison.FunctionalTests (2)
ResponseCompressionTests.cs (1)
221return response.Content.Headers.TryGetValues(HeaderNames.ContentLength, out var values) ? values.FirstOrDefault() : null;
ResponseTests.cs (1)
270return response.Content.Headers.TryGetValues(HeaderNames.ContentLength, out values) ? values.FirstOrDefault() : null;