diff --git a/src/Microsoft.AspNetCore.Server.Kestrel/Http/Frame.cs b/src/Microsoft.AspNetCore.Server.Kestrel/Http/Frame.cs index f40d4a06ee..e00f0579d2 100644 --- a/src/Microsoft.AspNetCore.Server.Kestrel/Http/Frame.cs +++ b/src/Microsoft.AspNetCore.Server.Kestrel/Http/Frame.cs @@ -266,20 +266,22 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (_frameHeaders != null) { - RequestHeaders = null; - ResponseHeaders = null; var frameHeaders = _frameHeaders; _frameHeaders = null; + + RequestHeaders = null; + ResponseHeaders = null; HttpComponentFactory.DisposeHeaders(frameHeaders, poolingPermitted); } if (_frameStreams != null) { + var frameStreams = _frameStreams; + _frameStreams = null; + RequestBody = null; ResponseBody = null; DuplexStream = null; - var frameStreams = _frameStreams; - _frameStreams = null; HttpComponentFactory.DisposeStreams(frameStreams, poolingPermitted); } } diff --git a/src/Microsoft.AspNetCore.Server.Kestrel/Http/FrameHeaders.Generated.cs b/src/Microsoft.AspNetCore.Server.Kestrel/Http/FrameHeaders.Generated.cs index b0561f2514..e8a93d9b4d 100644 --- a/src/Microsoft.AspNetCore.Server.Kestrel/Http/FrameHeaders.Generated.cs +++ b/src/Microsoft.AspNetCore.Server.Kestrel/Http/FrameHeaders.Generated.cs @@ -12,52 +12,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { private long _bits = 0; - - private StringValues _CacheControl; - private StringValues _Connection; - private StringValues _Date; - private StringValues _KeepAlive; - private StringValues _Pragma; - private StringValues _Trailer; - private StringValues _TransferEncoding; - private StringValues _Upgrade; - private StringValues _Via; - private StringValues _Warning; - private StringValues _Allow; - private StringValues _ContentLength; - private StringValues _ContentType; - private StringValues _ContentEncoding; - private StringValues _ContentLanguage; - private StringValues _ContentLocation; - private StringValues _ContentMD5; - private StringValues _ContentRange; - private StringValues _Expires; - private StringValues _LastModified; - private StringValues _Accept; - private StringValues _AcceptCharset; - private StringValues _AcceptEncoding; - private StringValues _AcceptLanguage; - private StringValues _Authorization; - private StringValues _Cookie; - private StringValues _Expect; - private StringValues _From; - private StringValues _Host; - private StringValues _IfMatch; - private StringValues _IfModifiedSince; - private StringValues _IfNoneMatch; - private StringValues _IfRange; - private StringValues _IfUnmodifiedSince; - private StringValues _MaxForwards; - private StringValues _ProxyAuthorization; - private StringValues _Referer; - private StringValues _Range; - private StringValues _TE; - private StringValues _Translate; - private StringValues _UserAgent; - private StringValues _Origin; - private StringValues _AccessControlRequestMethod; - private StringValues _AccessControlRequestHeaders; - + private HeaderReferences _headers; public StringValues HeaderCacheControl { @@ -65,14 +20,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1L) != 0)) { - return _CacheControl; + return _headers._CacheControl; } return StringValues.Empty; } set { _bits |= 1L; - _CacheControl = value; + _headers._CacheControl = value; } } public StringValues HeaderConnection @@ -81,14 +36,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2L) != 0)) { - return _Connection; + return _headers._Connection; } return StringValues.Empty; } set { _bits |= 2L; - _Connection = value; + _headers._Connection = value; } } public StringValues HeaderDate @@ -97,14 +52,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4L) != 0)) { - return _Date; + return _headers._Date; } return StringValues.Empty; } set { _bits |= 4L; - _Date = value; + _headers._Date = value; } } public StringValues HeaderKeepAlive @@ -113,14 +68,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8L) != 0)) { - return _KeepAlive; + return _headers._KeepAlive; } return StringValues.Empty; } set { _bits |= 8L; - _KeepAlive = value; + _headers._KeepAlive = value; } } public StringValues HeaderPragma @@ -129,14 +84,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16L) != 0)) { - return _Pragma; + return _headers._Pragma; } return StringValues.Empty; } set { _bits |= 16L; - _Pragma = value; + _headers._Pragma = value; } } public StringValues HeaderTrailer @@ -145,14 +100,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 32L) != 0)) { - return _Trailer; + return _headers._Trailer; } return StringValues.Empty; } set { _bits |= 32L; - _Trailer = value; + _headers._Trailer = value; } } public StringValues HeaderTransferEncoding @@ -161,14 +116,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 64L) != 0)) { - return _TransferEncoding; + return _headers._TransferEncoding; } return StringValues.Empty; } set { _bits |= 64L; - _TransferEncoding = value; + _headers._TransferEncoding = value; } } public StringValues HeaderUpgrade @@ -177,14 +132,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 128L) != 0)) { - return _Upgrade; + return _headers._Upgrade; } return StringValues.Empty; } set { _bits |= 128L; - _Upgrade = value; + _headers._Upgrade = value; } } public StringValues HeaderVia @@ -193,14 +148,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 256L) != 0)) { - return _Via; + return _headers._Via; } return StringValues.Empty; } set { _bits |= 256L; - _Via = value; + _headers._Via = value; } } public StringValues HeaderWarning @@ -209,14 +164,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 512L) != 0)) { - return _Warning; + return _headers._Warning; } return StringValues.Empty; } set { _bits |= 512L; - _Warning = value; + _headers._Warning = value; } } public StringValues HeaderAllow @@ -225,14 +180,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1024L) != 0)) { - return _Allow; + return _headers._Allow; } return StringValues.Empty; } set { _bits |= 1024L; - _Allow = value; + _headers._Allow = value; } } public StringValues HeaderContentLength @@ -241,14 +196,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2048L) != 0)) { - return _ContentLength; + return _headers._ContentLength; } return StringValues.Empty; } set { _bits |= 2048L; - _ContentLength = value; + _headers._ContentLength = value; } } public StringValues HeaderContentType @@ -257,14 +212,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4096L) != 0)) { - return _ContentType; + return _headers._ContentType; } return StringValues.Empty; } set { _bits |= 4096L; - _ContentType = value; + _headers._ContentType = value; } } public StringValues HeaderContentEncoding @@ -273,14 +228,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8192L) != 0)) { - return _ContentEncoding; + return _headers._ContentEncoding; } return StringValues.Empty; } set { _bits |= 8192L; - _ContentEncoding = value; + _headers._ContentEncoding = value; } } public StringValues HeaderContentLanguage @@ -289,14 +244,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16384L) != 0)) { - return _ContentLanguage; + return _headers._ContentLanguage; } return StringValues.Empty; } set { _bits |= 16384L; - _ContentLanguage = value; + _headers._ContentLanguage = value; } } public StringValues HeaderContentLocation @@ -305,14 +260,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 32768L) != 0)) { - return _ContentLocation; + return _headers._ContentLocation; } return StringValues.Empty; } set { _bits |= 32768L; - _ContentLocation = value; + _headers._ContentLocation = value; } } public StringValues HeaderContentMD5 @@ -321,14 +276,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 65536L) != 0)) { - return _ContentMD5; + return _headers._ContentMD5; } return StringValues.Empty; } set { _bits |= 65536L; - _ContentMD5 = value; + _headers._ContentMD5 = value; } } public StringValues HeaderContentRange @@ -337,14 +292,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 131072L) != 0)) { - return _ContentRange; + return _headers._ContentRange; } return StringValues.Empty; } set { _bits |= 131072L; - _ContentRange = value; + _headers._ContentRange = value; } } public StringValues HeaderExpires @@ -353,14 +308,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 262144L) != 0)) { - return _Expires; + return _headers._Expires; } return StringValues.Empty; } set { _bits |= 262144L; - _Expires = value; + _headers._Expires = value; } } public StringValues HeaderLastModified @@ -369,14 +324,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 524288L) != 0)) { - return _LastModified; + return _headers._LastModified; } return StringValues.Empty; } set { _bits |= 524288L; - _LastModified = value; + _headers._LastModified = value; } } public StringValues HeaderAccept @@ -385,14 +340,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1048576L) != 0)) { - return _Accept; + return _headers._Accept; } return StringValues.Empty; } set { _bits |= 1048576L; - _Accept = value; + _headers._Accept = value; } } public StringValues HeaderAcceptCharset @@ -401,14 +356,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2097152L) != 0)) { - return _AcceptCharset; + return _headers._AcceptCharset; } return StringValues.Empty; } set { _bits |= 2097152L; - _AcceptCharset = value; + _headers._AcceptCharset = value; } } public StringValues HeaderAcceptEncoding @@ -417,14 +372,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4194304L) != 0)) { - return _AcceptEncoding; + return _headers._AcceptEncoding; } return StringValues.Empty; } set { _bits |= 4194304L; - _AcceptEncoding = value; + _headers._AcceptEncoding = value; } } public StringValues HeaderAcceptLanguage @@ -433,14 +388,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8388608L) != 0)) { - return _AcceptLanguage; + return _headers._AcceptLanguage; } return StringValues.Empty; } set { _bits |= 8388608L; - _AcceptLanguage = value; + _headers._AcceptLanguage = value; } } public StringValues HeaderAuthorization @@ -449,14 +404,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16777216L) != 0)) { - return _Authorization; + return _headers._Authorization; } return StringValues.Empty; } set { _bits |= 16777216L; - _Authorization = value; + _headers._Authorization = value; } } public StringValues HeaderCookie @@ -465,14 +420,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 33554432L) != 0)) { - return _Cookie; + return _headers._Cookie; } return StringValues.Empty; } set { _bits |= 33554432L; - _Cookie = value; + _headers._Cookie = value; } } public StringValues HeaderExpect @@ -481,14 +436,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 67108864L) != 0)) { - return _Expect; + return _headers._Expect; } return StringValues.Empty; } set { _bits |= 67108864L; - _Expect = value; + _headers._Expect = value; } } public StringValues HeaderFrom @@ -497,14 +452,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 134217728L) != 0)) { - return _From; + return _headers._From; } return StringValues.Empty; } set { _bits |= 134217728L; - _From = value; + _headers._From = value; } } public StringValues HeaderHost @@ -513,14 +468,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 268435456L) != 0)) { - return _Host; + return _headers._Host; } return StringValues.Empty; } set { _bits |= 268435456L; - _Host = value; + _headers._Host = value; } } public StringValues HeaderIfMatch @@ -529,14 +484,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 536870912L) != 0)) { - return _IfMatch; + return _headers._IfMatch; } return StringValues.Empty; } set { _bits |= 536870912L; - _IfMatch = value; + _headers._IfMatch = value; } } public StringValues HeaderIfModifiedSince @@ -545,14 +500,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1073741824L) != 0)) { - return _IfModifiedSince; + return _headers._IfModifiedSince; } return StringValues.Empty; } set { _bits |= 1073741824L; - _IfModifiedSince = value; + _headers._IfModifiedSince = value; } } public StringValues HeaderIfNoneMatch @@ -561,14 +516,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2147483648L) != 0)) { - return _IfNoneMatch; + return _headers._IfNoneMatch; } return StringValues.Empty; } set { _bits |= 2147483648L; - _IfNoneMatch = value; + _headers._IfNoneMatch = value; } } public StringValues HeaderIfRange @@ -577,14 +532,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4294967296L) != 0)) { - return _IfRange; + return _headers._IfRange; } return StringValues.Empty; } set { _bits |= 4294967296L; - _IfRange = value; + _headers._IfRange = value; } } public StringValues HeaderIfUnmodifiedSince @@ -593,14 +548,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8589934592L) != 0)) { - return _IfUnmodifiedSince; + return _headers._IfUnmodifiedSince; } return StringValues.Empty; } set { _bits |= 8589934592L; - _IfUnmodifiedSince = value; + _headers._IfUnmodifiedSince = value; } } public StringValues HeaderMaxForwards @@ -609,14 +564,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 17179869184L) != 0)) { - return _MaxForwards; + return _headers._MaxForwards; } return StringValues.Empty; } set { _bits |= 17179869184L; - _MaxForwards = value; + _headers._MaxForwards = value; } } public StringValues HeaderProxyAuthorization @@ -625,14 +580,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 34359738368L) != 0)) { - return _ProxyAuthorization; + return _headers._ProxyAuthorization; } return StringValues.Empty; } set { _bits |= 34359738368L; - _ProxyAuthorization = value; + _headers._ProxyAuthorization = value; } } public StringValues HeaderReferer @@ -641,14 +596,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 68719476736L) != 0)) { - return _Referer; + return _headers._Referer; } return StringValues.Empty; } set { _bits |= 68719476736L; - _Referer = value; + _headers._Referer = value; } } public StringValues HeaderRange @@ -657,14 +612,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 137438953472L) != 0)) { - return _Range; + return _headers._Range; } return StringValues.Empty; } set { _bits |= 137438953472L; - _Range = value; + _headers._Range = value; } } public StringValues HeaderTE @@ -673,14 +628,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 274877906944L) != 0)) { - return _TE; + return _headers._TE; } return StringValues.Empty; } set { _bits |= 274877906944L; - _TE = value; + _headers._TE = value; } } public StringValues HeaderTranslate @@ -689,14 +644,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 549755813888L) != 0)) { - return _Translate; + return _headers._Translate; } return StringValues.Empty; } set { _bits |= 549755813888L; - _Translate = value; + _headers._Translate = value; } } public StringValues HeaderUserAgent @@ -705,14 +660,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1099511627776L) != 0)) { - return _UserAgent; + return _headers._UserAgent; } return StringValues.Empty; } set { _bits |= 1099511627776L; - _UserAgent = value; + _headers._UserAgent = value; } } public StringValues HeaderOrigin @@ -721,14 +676,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2199023255552L) != 0)) { - return _Origin; + return _headers._Origin; } return StringValues.Empty; } set { _bits |= 2199023255552L; - _Origin = value; + _headers._Origin = value; } } public StringValues HeaderAccessControlRequestMethod @@ -737,14 +692,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4398046511104L) != 0)) { - return _AccessControlRequestMethod; + return _headers._AccessControlRequestMethod; } return StringValues.Empty; } set { _bits |= 4398046511104L; - _AccessControlRequestMethod = value; + _headers._AccessControlRequestMethod = value; } } public StringValues HeaderAccessControlRequestHeaders @@ -753,14 +708,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8796093022208L) != 0)) { - return _AccessControlRequestHeaders; + return _headers._AccessControlRequestHeaders; } return StringValues.Empty; } set { _bits |= 8796093022208L; - _AccessControlRequestHeaders = value; + _headers._AccessControlRequestHeaders = value; } } @@ -778,7 +733,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1L) != 0)) { - return _CacheControl; + return _headers._CacheControl; } else { @@ -790,7 +745,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 131072L) != 0)) { - return _ContentRange; + return _headers._ContentRange; } else { @@ -802,7 +757,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 524288L) != 0)) { - return _LastModified; + return _headers._LastModified; } else { @@ -814,7 +769,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16777216L) != 0)) { - return _Authorization; + return _headers._Authorization; } else { @@ -826,7 +781,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2147483648L) != 0)) { - return _IfNoneMatch; + return _headers._IfNoneMatch; } else { @@ -842,7 +797,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2L) != 0)) { - return _Connection; + return _headers._Connection; } else { @@ -854,7 +809,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8L) != 0)) { - return _KeepAlive; + return _headers._KeepAlive; } else { @@ -866,7 +821,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1099511627776L) != 0)) { - return _UserAgent; + return _headers._UserAgent; } else { @@ -882,7 +837,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4L) != 0)) { - return _Date; + return _headers._Date; } else { @@ -894,7 +849,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 134217728L) != 0)) { - return _From; + return _headers._From; } else { @@ -906,7 +861,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 268435456L) != 0)) { - return _Host; + return _headers._Host; } else { @@ -922,7 +877,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16L) != 0)) { - return _Pragma; + return _headers._Pragma; } else { @@ -934,7 +889,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1048576L) != 0)) { - return _Accept; + return _headers._Accept; } else { @@ -946,7 +901,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 33554432L) != 0)) { - return _Cookie; + return _headers._Cookie; } else { @@ -958,7 +913,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 67108864L) != 0)) { - return _Expect; + return _headers._Expect; } else { @@ -970,7 +925,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2199023255552L) != 0)) { - return _Origin; + return _headers._Origin; } else { @@ -986,7 +941,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 32L) != 0)) { - return _Trailer; + return _headers._Trailer; } else { @@ -998,7 +953,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 128L) != 0)) { - return _Upgrade; + return _headers._Upgrade; } else { @@ -1010,7 +965,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 512L) != 0)) { - return _Warning; + return _headers._Warning; } else { @@ -1022,7 +977,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 262144L) != 0)) { - return _Expires; + return _headers._Expires; } else { @@ -1034,7 +989,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 68719476736L) != 0)) { - return _Referer; + return _headers._Referer; } else { @@ -1050,7 +1005,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 64L) != 0)) { - return _TransferEncoding; + return _headers._TransferEncoding; } else { @@ -1062,7 +1017,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1073741824L) != 0)) { - return _IfModifiedSince; + return _headers._IfModifiedSince; } else { @@ -1078,7 +1033,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 256L) != 0)) { - return _Via; + return _headers._Via; } else { @@ -1094,7 +1049,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1024L) != 0)) { - return _Allow; + return _headers._Allow; } else { @@ -1106,7 +1061,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 137438953472L) != 0)) { - return _Range; + return _headers._Range; } else { @@ -1122,7 +1077,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2048L) != 0)) { - return _ContentLength; + return _headers._ContentLength; } else { @@ -1134,7 +1089,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2097152L) != 0)) { - return _AcceptCharset; + return _headers._AcceptCharset; } else { @@ -1150,7 +1105,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4096L) != 0)) { - return _ContentType; + return _headers._ContentType; } else { @@ -1162,7 +1117,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 17179869184L) != 0)) { - return _MaxForwards; + return _headers._MaxForwards; } else { @@ -1178,7 +1133,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8192L) != 0)) { - return _ContentEncoding; + return _headers._ContentEncoding; } else { @@ -1190,7 +1145,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16384L) != 0)) { - return _ContentLanguage; + return _headers._ContentLanguage; } else { @@ -1202,7 +1157,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 32768L) != 0)) { - return _ContentLocation; + return _headers._ContentLocation; } else { @@ -1218,7 +1173,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 65536L) != 0)) { - return _ContentMD5; + return _headers._ContentMD5; } else { @@ -1234,7 +1189,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4194304L) != 0)) { - return _AcceptEncoding; + return _headers._AcceptEncoding; } else { @@ -1246,7 +1201,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8388608L) != 0)) { - return _AcceptLanguage; + return _headers._AcceptLanguage; } else { @@ -1262,7 +1217,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 536870912L) != 0)) { - return _IfMatch; + return _headers._IfMatch; } else { @@ -1274,7 +1229,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4294967296L) != 0)) { - return _IfRange; + return _headers._IfRange; } else { @@ -1290,7 +1245,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8589934592L) != 0)) { - return _IfUnmodifiedSince; + return _headers._IfUnmodifiedSince; } else { @@ -1302,7 +1257,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 34359738368L) != 0)) { - return _ProxyAuthorization; + return _headers._ProxyAuthorization; } else { @@ -1318,7 +1273,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 274877906944L) != 0)) { - return _TE; + return _headers._TE; } else { @@ -1334,7 +1289,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 549755813888L) != 0)) { - return _Translate; + return _headers._Translate; } else { @@ -1350,7 +1305,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4398046511104L) != 0)) { - return _AccessControlRequestMethod; + return _headers._AccessControlRequestMethod; } else { @@ -1366,7 +1321,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8796093022208L) != 0)) { - return _AccessControlRequestHeaders; + return _headers._AccessControlRequestHeaders; } else { @@ -1392,7 +1347,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1L) != 0)) { - value = _CacheControl; + value = _headers._CacheControl; return true; } else @@ -1406,7 +1361,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 131072L) != 0)) { - value = _ContentRange; + value = _headers._ContentRange; return true; } else @@ -1420,7 +1375,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 524288L) != 0)) { - value = _LastModified; + value = _headers._LastModified; return true; } else @@ -1434,7 +1389,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16777216L) != 0)) { - value = _Authorization; + value = _headers._Authorization; return true; } else @@ -1448,7 +1403,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2147483648L) != 0)) { - value = _IfNoneMatch; + value = _headers._IfNoneMatch; return true; } else @@ -1466,7 +1421,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2L) != 0)) { - value = _Connection; + value = _headers._Connection; return true; } else @@ -1480,7 +1435,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8L) != 0)) { - value = _KeepAlive; + value = _headers._KeepAlive; return true; } else @@ -1494,7 +1449,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1099511627776L) != 0)) { - value = _UserAgent; + value = _headers._UserAgent; return true; } else @@ -1512,7 +1467,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4L) != 0)) { - value = _Date; + value = _headers._Date; return true; } else @@ -1526,7 +1481,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 134217728L) != 0)) { - value = _From; + value = _headers._From; return true; } else @@ -1540,7 +1495,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 268435456L) != 0)) { - value = _Host; + value = _headers._Host; return true; } else @@ -1558,7 +1513,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16L) != 0)) { - value = _Pragma; + value = _headers._Pragma; return true; } else @@ -1572,7 +1527,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1048576L) != 0)) { - value = _Accept; + value = _headers._Accept; return true; } else @@ -1586,7 +1541,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 33554432L) != 0)) { - value = _Cookie; + value = _headers._Cookie; return true; } else @@ -1600,7 +1555,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 67108864L) != 0)) { - value = _Expect; + value = _headers._Expect; return true; } else @@ -1614,7 +1569,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2199023255552L) != 0)) { - value = _Origin; + value = _headers._Origin; return true; } else @@ -1632,7 +1587,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 32L) != 0)) { - value = _Trailer; + value = _headers._Trailer; return true; } else @@ -1646,7 +1601,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 128L) != 0)) { - value = _Upgrade; + value = _headers._Upgrade; return true; } else @@ -1660,7 +1615,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 512L) != 0)) { - value = _Warning; + value = _headers._Warning; return true; } else @@ -1674,7 +1629,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 262144L) != 0)) { - value = _Expires; + value = _headers._Expires; return true; } else @@ -1688,7 +1643,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 68719476736L) != 0)) { - value = _Referer; + value = _headers._Referer; return true; } else @@ -1706,7 +1661,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 64L) != 0)) { - value = _TransferEncoding; + value = _headers._TransferEncoding; return true; } else @@ -1720,7 +1675,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1073741824L) != 0)) { - value = _IfModifiedSince; + value = _headers._IfModifiedSince; return true; } else @@ -1738,7 +1693,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 256L) != 0)) { - value = _Via; + value = _headers._Via; return true; } else @@ -1756,7 +1711,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1024L) != 0)) { - value = _Allow; + value = _headers._Allow; return true; } else @@ -1770,7 +1725,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 137438953472L) != 0)) { - value = _Range; + value = _headers._Range; return true; } else @@ -1788,7 +1743,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2048L) != 0)) { - value = _ContentLength; + value = _headers._ContentLength; return true; } else @@ -1802,7 +1757,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2097152L) != 0)) { - value = _AcceptCharset; + value = _headers._AcceptCharset; return true; } else @@ -1820,7 +1775,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4096L) != 0)) { - value = _ContentType; + value = _headers._ContentType; return true; } else @@ -1834,7 +1789,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 17179869184L) != 0)) { - value = _MaxForwards; + value = _headers._MaxForwards; return true; } else @@ -1852,7 +1807,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8192L) != 0)) { - value = _ContentEncoding; + value = _headers._ContentEncoding; return true; } else @@ -1866,7 +1821,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16384L) != 0)) { - value = _ContentLanguage; + value = _headers._ContentLanguage; return true; } else @@ -1880,7 +1835,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 32768L) != 0)) { - value = _ContentLocation; + value = _headers._ContentLocation; return true; } else @@ -1898,7 +1853,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 65536L) != 0)) { - value = _ContentMD5; + value = _headers._ContentMD5; return true; } else @@ -1916,7 +1871,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4194304L) != 0)) { - value = _AcceptEncoding; + value = _headers._AcceptEncoding; return true; } else @@ -1930,7 +1885,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8388608L) != 0)) { - value = _AcceptLanguage; + value = _headers._AcceptLanguage; return true; } else @@ -1948,7 +1903,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 536870912L) != 0)) { - value = _IfMatch; + value = _headers._IfMatch; return true; } else @@ -1962,7 +1917,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4294967296L) != 0)) { - value = _IfRange; + value = _headers._IfRange; return true; } else @@ -1980,7 +1935,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8589934592L) != 0)) { - value = _IfUnmodifiedSince; + value = _headers._IfUnmodifiedSince; return true; } else @@ -1994,7 +1949,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 34359738368L) != 0)) { - value = _ProxyAuthorization; + value = _headers._ProxyAuthorization; return true; } else @@ -2012,7 +1967,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 274877906944L) != 0)) { - value = _TE; + value = _headers._TE; return true; } else @@ -2030,7 +1985,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 549755813888L) != 0)) { - value = _Translate; + value = _headers._Translate; return true; } else @@ -2048,7 +2003,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4398046511104L) != 0)) { - value = _AccessControlRequestMethod; + value = _headers._AccessControlRequestMethod; return true; } else @@ -2066,7 +2021,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8796093022208L) != 0)) { - value = _AccessControlRequestHeaders; + value = _headers._AccessControlRequestHeaders; return true; } else @@ -2090,35 +2045,35 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Cache-Control".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 1L; - _CacheControl = value; + _headers._CacheControl = value; return; } if ("Content-Range".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 131072L; - _ContentRange = value; + _headers._ContentRange = value; return; } if ("Last-Modified".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 524288L; - _LastModified = value; + _headers._LastModified = value; return; } if ("Authorization".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 16777216L; - _Authorization = value; + _headers._Authorization = value; return; } if ("If-None-Match".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 2147483648L; - _IfNoneMatch = value; + _headers._IfNoneMatch = value; return; } } @@ -2129,21 +2084,21 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Connection".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 2L; - _Connection = value; + _headers._Connection = value; return; } if ("Keep-Alive".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 8L; - _KeepAlive = value; + _headers._KeepAlive = value; return; } if ("User-Agent".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 1099511627776L; - _UserAgent = value; + _headers._UserAgent = value; return; } } @@ -2154,21 +2109,21 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Date".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 4L; - _Date = value; + _headers._Date = value; return; } if ("From".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 134217728L; - _From = value; + _headers._From = value; return; } if ("Host".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 268435456L; - _Host = value; + _headers._Host = value; return; } } @@ -2179,35 +2134,35 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Pragma".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 16L; - _Pragma = value; + _headers._Pragma = value; return; } if ("Accept".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 1048576L; - _Accept = value; + _headers._Accept = value; return; } if ("Cookie".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 33554432L; - _Cookie = value; + _headers._Cookie = value; return; } if ("Expect".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 67108864L; - _Expect = value; + _headers._Expect = value; return; } if ("Origin".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 2199023255552L; - _Origin = value; + _headers._Origin = value; return; } } @@ -2218,35 +2173,35 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Trailer".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 32L; - _Trailer = value; + _headers._Trailer = value; return; } if ("Upgrade".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 128L; - _Upgrade = value; + _headers._Upgrade = value; return; } if ("Warning".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 512L; - _Warning = value; + _headers._Warning = value; return; } if ("Expires".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 262144L; - _Expires = value; + _headers._Expires = value; return; } if ("Referer".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 68719476736L; - _Referer = value; + _headers._Referer = value; return; } } @@ -2257,14 +2212,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Transfer-Encoding".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 64L; - _TransferEncoding = value; + _headers._TransferEncoding = value; return; } if ("If-Modified-Since".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 1073741824L; - _IfModifiedSince = value; + _headers._IfModifiedSince = value; return; } } @@ -2275,7 +2230,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Via".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 256L; - _Via = value; + _headers._Via = value; return; } } @@ -2286,14 +2241,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Allow".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 1024L; - _Allow = value; + _headers._Allow = value; return; } if ("Range".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 137438953472L; - _Range = value; + _headers._Range = value; return; } } @@ -2304,14 +2259,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Content-Length".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 2048L; - _ContentLength = value; + _headers._ContentLength = value; return; } if ("Accept-Charset".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 2097152L; - _AcceptCharset = value; + _headers._AcceptCharset = value; return; } } @@ -2322,14 +2277,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Content-Type".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 4096L; - _ContentType = value; + _headers._ContentType = value; return; } if ("Max-Forwards".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 17179869184L; - _MaxForwards = value; + _headers._MaxForwards = value; return; } } @@ -2340,21 +2295,21 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Content-Encoding".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 8192L; - _ContentEncoding = value; + _headers._ContentEncoding = value; return; } if ("Content-Language".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 16384L; - _ContentLanguage = value; + _headers._ContentLanguage = value; return; } if ("Content-Location".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 32768L; - _ContentLocation = value; + _headers._ContentLocation = value; return; } } @@ -2365,7 +2320,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Content-MD5".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 65536L; - _ContentMD5 = value; + _headers._ContentMD5 = value; return; } } @@ -2376,14 +2331,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Accept-Encoding".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 4194304L; - _AcceptEncoding = value; + _headers._AcceptEncoding = value; return; } if ("Accept-Language".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 8388608L; - _AcceptLanguage = value; + _headers._AcceptLanguage = value; return; } } @@ -2394,14 +2349,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("If-Match".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 536870912L; - _IfMatch = value; + _headers._IfMatch = value; return; } if ("If-Range".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 4294967296L; - _IfRange = value; + _headers._IfRange = value; return; } } @@ -2412,14 +2367,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("If-Unmodified-Since".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 8589934592L; - _IfUnmodifiedSince = value; + _headers._IfUnmodifiedSince = value; return; } if ("Proxy-Authorization".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 34359738368L; - _ProxyAuthorization = value; + _headers._ProxyAuthorization = value; return; } } @@ -2430,7 +2385,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("TE".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 274877906944L; - _TE = value; + _headers._TE = value; return; } } @@ -2441,7 +2396,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Translate".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 549755813888L; - _Translate = value; + _headers._Translate = value; return; } } @@ -2452,7 +2407,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Access-Control-Request-Method".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 4398046511104L; - _AccessControlRequestMethod = value; + _headers._AccessControlRequestMethod = value; return; } } @@ -2463,7 +2418,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Access-Control-Request-Headers".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 8796093022208L; - _AccessControlRequestHeaders = value; + _headers._AccessControlRequestHeaders = value; return; } } @@ -2484,7 +2439,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 1L; - _CacheControl = value; + _headers._CacheControl = value; return; } @@ -2495,7 +2450,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 131072L; - _ContentRange = value; + _headers._ContentRange = value; return; } @@ -2506,7 +2461,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 524288L; - _LastModified = value; + _headers._LastModified = value; return; } @@ -2517,7 +2472,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 16777216L; - _Authorization = value; + _headers._Authorization = value; return; } @@ -2528,7 +2483,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 2147483648L; - _IfNoneMatch = value; + _headers._IfNoneMatch = value; return; } } @@ -2543,7 +2498,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 2L; - _Connection = value; + _headers._Connection = value; return; } @@ -2554,7 +2509,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 8L; - _KeepAlive = value; + _headers._KeepAlive = value; return; } @@ -2565,7 +2520,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 1099511627776L; - _UserAgent = value; + _headers._UserAgent = value; return; } } @@ -2580,7 +2535,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 4L; - _Date = value; + _headers._Date = value; return; } @@ -2591,7 +2546,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 134217728L; - _From = value; + _headers._From = value; return; } @@ -2602,7 +2557,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 268435456L; - _Host = value; + _headers._Host = value; return; } } @@ -2617,7 +2572,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 16L; - _Pragma = value; + _headers._Pragma = value; return; } @@ -2628,7 +2583,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 1048576L; - _Accept = value; + _headers._Accept = value; return; } @@ -2639,7 +2594,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 33554432L; - _Cookie = value; + _headers._Cookie = value; return; } @@ -2650,7 +2605,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 67108864L; - _Expect = value; + _headers._Expect = value; return; } @@ -2661,7 +2616,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 2199023255552L; - _Origin = value; + _headers._Origin = value; return; } } @@ -2676,7 +2631,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 32L; - _Trailer = value; + _headers._Trailer = value; return; } @@ -2687,7 +2642,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 128L; - _Upgrade = value; + _headers._Upgrade = value; return; } @@ -2698,7 +2653,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 512L; - _Warning = value; + _headers._Warning = value; return; } @@ -2709,7 +2664,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 262144L; - _Expires = value; + _headers._Expires = value; return; } @@ -2720,7 +2675,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 68719476736L; - _Referer = value; + _headers._Referer = value; return; } } @@ -2735,7 +2690,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 64L; - _TransferEncoding = value; + _headers._TransferEncoding = value; return; } @@ -2746,7 +2701,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 1073741824L; - _IfModifiedSince = value; + _headers._IfModifiedSince = value; return; } } @@ -2761,7 +2716,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 256L; - _Via = value; + _headers._Via = value; return; } } @@ -2776,7 +2731,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 1024L; - _Allow = value; + _headers._Allow = value; return; } @@ -2787,7 +2742,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 137438953472L; - _Range = value; + _headers._Range = value; return; } } @@ -2802,7 +2757,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 2048L; - _ContentLength = value; + _headers._ContentLength = value; return; } @@ -2813,7 +2768,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 2097152L; - _AcceptCharset = value; + _headers._AcceptCharset = value; return; } } @@ -2828,7 +2783,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 4096L; - _ContentType = value; + _headers._ContentType = value; return; } @@ -2839,7 +2794,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 17179869184L; - _MaxForwards = value; + _headers._MaxForwards = value; return; } } @@ -2854,7 +2809,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 8192L; - _ContentEncoding = value; + _headers._ContentEncoding = value; return; } @@ -2865,7 +2820,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 16384L; - _ContentLanguage = value; + _headers._ContentLanguage = value; return; } @@ -2876,7 +2831,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 32768L; - _ContentLocation = value; + _headers._ContentLocation = value; return; } } @@ -2891,7 +2846,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 65536L; - _ContentMD5 = value; + _headers._ContentMD5 = value; return; } } @@ -2906,7 +2861,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 4194304L; - _AcceptEncoding = value; + _headers._AcceptEncoding = value; return; } @@ -2917,7 +2872,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 8388608L; - _AcceptLanguage = value; + _headers._AcceptLanguage = value; return; } } @@ -2932,7 +2887,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 536870912L; - _IfMatch = value; + _headers._IfMatch = value; return; } @@ -2943,7 +2898,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 4294967296L; - _IfRange = value; + _headers._IfRange = value; return; } } @@ -2958,7 +2913,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 8589934592L; - _IfUnmodifiedSince = value; + _headers._IfUnmodifiedSince = value; return; } @@ -2969,7 +2924,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 34359738368L; - _ProxyAuthorization = value; + _headers._ProxyAuthorization = value; return; } } @@ -2984,7 +2939,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 274877906944L; - _TE = value; + _headers._TE = value; return; } } @@ -2999,7 +2954,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 549755813888L; - _Translate = value; + _headers._Translate = value; return; } } @@ -3014,7 +2969,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 4398046511104L; - _AccessControlRequestMethod = value; + _headers._AccessControlRequestMethod = value; return; } } @@ -3029,7 +2984,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 8796093022208L; - _AccessControlRequestHeaders = value; + _headers._AccessControlRequestHeaders = value; return; } } @@ -3048,7 +3003,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 1L) != 0)) { _bits &= ~1L; - _CacheControl = StringValues.Empty; + _headers._CacheControl = StringValues.Empty; return true; } else @@ -3062,7 +3017,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 131072L) != 0)) { _bits &= ~131072L; - _ContentRange = StringValues.Empty; + _headers._ContentRange = StringValues.Empty; return true; } else @@ -3076,7 +3031,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 524288L) != 0)) { _bits &= ~524288L; - _LastModified = StringValues.Empty; + _headers._LastModified = StringValues.Empty; return true; } else @@ -3090,7 +3045,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 16777216L) != 0)) { _bits &= ~16777216L; - _Authorization = StringValues.Empty; + _headers._Authorization = StringValues.Empty; return true; } else @@ -3104,7 +3059,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 2147483648L) != 0)) { _bits &= ~2147483648L; - _IfNoneMatch = StringValues.Empty; + _headers._IfNoneMatch = StringValues.Empty; return true; } else @@ -3122,7 +3077,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 2L) != 0)) { _bits &= ~2L; - _Connection = StringValues.Empty; + _headers._Connection = StringValues.Empty; return true; } else @@ -3136,7 +3091,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 8L) != 0)) { _bits &= ~8L; - _KeepAlive = StringValues.Empty; + _headers._KeepAlive = StringValues.Empty; return true; } else @@ -3150,7 +3105,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 1099511627776L) != 0)) { _bits &= ~1099511627776L; - _UserAgent = StringValues.Empty; + _headers._UserAgent = StringValues.Empty; return true; } else @@ -3168,7 +3123,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 4L) != 0)) { _bits &= ~4L; - _Date = StringValues.Empty; + _headers._Date = StringValues.Empty; return true; } else @@ -3182,7 +3137,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 134217728L) != 0)) { _bits &= ~134217728L; - _From = StringValues.Empty; + _headers._From = StringValues.Empty; return true; } else @@ -3196,7 +3151,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 268435456L) != 0)) { _bits &= ~268435456L; - _Host = StringValues.Empty; + _headers._Host = StringValues.Empty; return true; } else @@ -3214,7 +3169,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 16L) != 0)) { _bits &= ~16L; - _Pragma = StringValues.Empty; + _headers._Pragma = StringValues.Empty; return true; } else @@ -3228,7 +3183,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 1048576L) != 0)) { _bits &= ~1048576L; - _Accept = StringValues.Empty; + _headers._Accept = StringValues.Empty; return true; } else @@ -3242,7 +3197,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 33554432L) != 0)) { _bits &= ~33554432L; - _Cookie = StringValues.Empty; + _headers._Cookie = StringValues.Empty; return true; } else @@ -3256,7 +3211,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 67108864L) != 0)) { _bits &= ~67108864L; - _Expect = StringValues.Empty; + _headers._Expect = StringValues.Empty; return true; } else @@ -3270,7 +3225,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 2199023255552L) != 0)) { _bits &= ~2199023255552L; - _Origin = StringValues.Empty; + _headers._Origin = StringValues.Empty; return true; } else @@ -3288,7 +3243,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 32L) != 0)) { _bits &= ~32L; - _Trailer = StringValues.Empty; + _headers._Trailer = StringValues.Empty; return true; } else @@ -3302,7 +3257,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 128L) != 0)) { _bits &= ~128L; - _Upgrade = StringValues.Empty; + _headers._Upgrade = StringValues.Empty; return true; } else @@ -3316,7 +3271,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 512L) != 0)) { _bits &= ~512L; - _Warning = StringValues.Empty; + _headers._Warning = StringValues.Empty; return true; } else @@ -3330,7 +3285,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 262144L) != 0)) { _bits &= ~262144L; - _Expires = StringValues.Empty; + _headers._Expires = StringValues.Empty; return true; } else @@ -3344,7 +3299,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 68719476736L) != 0)) { _bits &= ~68719476736L; - _Referer = StringValues.Empty; + _headers._Referer = StringValues.Empty; return true; } else @@ -3362,7 +3317,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 64L) != 0)) { _bits &= ~64L; - _TransferEncoding = StringValues.Empty; + _headers._TransferEncoding = StringValues.Empty; return true; } else @@ -3376,7 +3331,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 1073741824L) != 0)) { _bits &= ~1073741824L; - _IfModifiedSince = StringValues.Empty; + _headers._IfModifiedSince = StringValues.Empty; return true; } else @@ -3394,7 +3349,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 256L) != 0)) { _bits &= ~256L; - _Via = StringValues.Empty; + _headers._Via = StringValues.Empty; return true; } else @@ -3412,7 +3367,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 1024L) != 0)) { _bits &= ~1024L; - _Allow = StringValues.Empty; + _headers._Allow = StringValues.Empty; return true; } else @@ -3426,7 +3381,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 137438953472L) != 0)) { _bits &= ~137438953472L; - _Range = StringValues.Empty; + _headers._Range = StringValues.Empty; return true; } else @@ -3444,7 +3399,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 2048L) != 0)) { _bits &= ~2048L; - _ContentLength = StringValues.Empty; + _headers._ContentLength = StringValues.Empty; return true; } else @@ -3458,7 +3413,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 2097152L) != 0)) { _bits &= ~2097152L; - _AcceptCharset = StringValues.Empty; + _headers._AcceptCharset = StringValues.Empty; return true; } else @@ -3476,7 +3431,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 4096L) != 0)) { _bits &= ~4096L; - _ContentType = StringValues.Empty; + _headers._ContentType = StringValues.Empty; return true; } else @@ -3490,7 +3445,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 17179869184L) != 0)) { _bits &= ~17179869184L; - _MaxForwards = StringValues.Empty; + _headers._MaxForwards = StringValues.Empty; return true; } else @@ -3508,7 +3463,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 8192L) != 0)) { _bits &= ~8192L; - _ContentEncoding = StringValues.Empty; + _headers._ContentEncoding = StringValues.Empty; return true; } else @@ -3522,7 +3477,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 16384L) != 0)) { _bits &= ~16384L; - _ContentLanguage = StringValues.Empty; + _headers._ContentLanguage = StringValues.Empty; return true; } else @@ -3536,7 +3491,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 32768L) != 0)) { _bits &= ~32768L; - _ContentLocation = StringValues.Empty; + _headers._ContentLocation = StringValues.Empty; return true; } else @@ -3554,7 +3509,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 65536L) != 0)) { _bits &= ~65536L; - _ContentMD5 = StringValues.Empty; + _headers._ContentMD5 = StringValues.Empty; return true; } else @@ -3572,7 +3527,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 4194304L) != 0)) { _bits &= ~4194304L; - _AcceptEncoding = StringValues.Empty; + _headers._AcceptEncoding = StringValues.Empty; return true; } else @@ -3586,7 +3541,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 8388608L) != 0)) { _bits &= ~8388608L; - _AcceptLanguage = StringValues.Empty; + _headers._AcceptLanguage = StringValues.Empty; return true; } else @@ -3604,7 +3559,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 536870912L) != 0)) { _bits &= ~536870912L; - _IfMatch = StringValues.Empty; + _headers._IfMatch = StringValues.Empty; return true; } else @@ -3618,7 +3573,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 4294967296L) != 0)) { _bits &= ~4294967296L; - _IfRange = StringValues.Empty; + _headers._IfRange = StringValues.Empty; return true; } else @@ -3636,7 +3591,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 8589934592L) != 0)) { _bits &= ~8589934592L; - _IfUnmodifiedSince = StringValues.Empty; + _headers._IfUnmodifiedSince = StringValues.Empty; return true; } else @@ -3650,7 +3605,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 34359738368L) != 0)) { _bits &= ~34359738368L; - _ProxyAuthorization = StringValues.Empty; + _headers._ProxyAuthorization = StringValues.Empty; return true; } else @@ -3668,7 +3623,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 274877906944L) != 0)) { _bits &= ~274877906944L; - _TE = StringValues.Empty; + _headers._TE = StringValues.Empty; return true; } else @@ -3686,7 +3641,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 549755813888L) != 0)) { _bits &= ~549755813888L; - _Translate = StringValues.Empty; + _headers._Translate = StringValues.Empty; return true; } else @@ -3704,7 +3659,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 4398046511104L) != 0)) { _bits &= ~4398046511104L; - _AccessControlRequestMethod = StringValues.Empty; + _headers._AccessControlRequestMethod = StringValues.Empty; return true; } else @@ -3722,7 +3677,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 8796093022208L) != 0)) { _bits &= ~8796093022208L; - _AccessControlRequestHeaders = StringValues.Empty; + _headers._AccessControlRequestHeaders = StringValues.Empty; return true; } else @@ -3737,52 +3692,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http } protected override void ClearFast() { - if (((_bits & 1L) != 0)) _CacheControl = default(StringValues); - if (((_bits & 2L) != 0)) _Connection = default(StringValues); - if (((_bits & 4L) != 0)) _Date = default(StringValues); - if (((_bits & 8L) != 0)) _KeepAlive = default(StringValues); - if (((_bits & 16L) != 0)) _Pragma = default(StringValues); - if (((_bits & 32L) != 0)) _Trailer = default(StringValues); - if (((_bits & 64L) != 0)) _TransferEncoding = default(StringValues); - if (((_bits & 128L) != 0)) _Upgrade = default(StringValues); - if (((_bits & 256L) != 0)) _Via = default(StringValues); - if (((_bits & 512L) != 0)) _Warning = default(StringValues); - if (((_bits & 1024L) != 0)) _Allow = default(StringValues); - if (((_bits & 2048L) != 0)) _ContentLength = default(StringValues); - if (((_bits & 4096L) != 0)) _ContentType = default(StringValues); - if (((_bits & 8192L) != 0)) _ContentEncoding = default(StringValues); - if (((_bits & 16384L) != 0)) _ContentLanguage = default(StringValues); - if (((_bits & 32768L) != 0)) _ContentLocation = default(StringValues); - if (((_bits & 65536L) != 0)) _ContentMD5 = default(StringValues); - if (((_bits & 131072L) != 0)) _ContentRange = default(StringValues); - if (((_bits & 262144L) != 0)) _Expires = default(StringValues); - if (((_bits & 524288L) != 0)) _LastModified = default(StringValues); - if (((_bits & 1048576L) != 0)) _Accept = default(StringValues); - if (((_bits & 2097152L) != 0)) _AcceptCharset = default(StringValues); - if (((_bits & 4194304L) != 0)) _AcceptEncoding = default(StringValues); - if (((_bits & 8388608L) != 0)) _AcceptLanguage = default(StringValues); - if (((_bits & 16777216L) != 0)) _Authorization = default(StringValues); - if (((_bits & 33554432L) != 0)) _Cookie = default(StringValues); - if (((_bits & 67108864L) != 0)) _Expect = default(StringValues); - if (((_bits & 134217728L) != 0)) _From = default(StringValues); - if (((_bits & 268435456L) != 0)) _Host = default(StringValues); - if (((_bits & 536870912L) != 0)) _IfMatch = default(StringValues); - if (((_bits & 1073741824L) != 0)) _IfModifiedSince = default(StringValues); - if (((_bits & 2147483648L) != 0)) _IfNoneMatch = default(StringValues); - if (((_bits & 4294967296L) != 0)) _IfRange = default(StringValues); - if (((_bits & 8589934592L) != 0)) _IfUnmodifiedSince = default(StringValues); - if (((_bits & 17179869184L) != 0)) _MaxForwards = default(StringValues); - if (((_bits & 34359738368L) != 0)) _ProxyAuthorization = default(StringValues); - if (((_bits & 68719476736L) != 0)) _Referer = default(StringValues); - if (((_bits & 137438953472L) != 0)) _Range = default(StringValues); - if (((_bits & 274877906944L) != 0)) _TE = default(StringValues); - if (((_bits & 549755813888L) != 0)) _Translate = default(StringValues); - if (((_bits & 1099511627776L) != 0)) _UserAgent = default(StringValues); - if (((_bits & 2199023255552L) != 0)) _Origin = default(StringValues); - if (((_bits & 4398046511104L) != 0)) _AccessControlRequestMethod = default(StringValues); - if (((_bits & 8796093022208L) != 0)) _AccessControlRequestHeaders = default(StringValues); - _bits = 0; + _headers = default(HeaderReferences); MaybeUnknown?.Clear(); } @@ -3800,7 +3711,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Cache-Control", _CacheControl); + array[arrayIndex] = new KeyValuePair("Cache-Control", _headers._CacheControl); ++arrayIndex; } @@ -3811,7 +3722,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Connection", _Connection); + array[arrayIndex] = new KeyValuePair("Connection", _headers._Connection); ++arrayIndex; } @@ -3822,7 +3733,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Date", _Date); + array[arrayIndex] = new KeyValuePair("Date", _headers._Date); ++arrayIndex; } @@ -3833,7 +3744,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Keep-Alive", _KeepAlive); + array[arrayIndex] = new KeyValuePair("Keep-Alive", _headers._KeepAlive); ++arrayIndex; } @@ -3844,7 +3755,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Pragma", _Pragma); + array[arrayIndex] = new KeyValuePair("Pragma", _headers._Pragma); ++arrayIndex; } @@ -3855,7 +3766,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Trailer", _Trailer); + array[arrayIndex] = new KeyValuePair("Trailer", _headers._Trailer); ++arrayIndex; } @@ -3866,7 +3777,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Transfer-Encoding", _TransferEncoding); + array[arrayIndex] = new KeyValuePair("Transfer-Encoding", _headers._TransferEncoding); ++arrayIndex; } @@ -3877,7 +3788,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Upgrade", _Upgrade); + array[arrayIndex] = new KeyValuePair("Upgrade", _headers._Upgrade); ++arrayIndex; } @@ -3888,7 +3799,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Via", _Via); + array[arrayIndex] = new KeyValuePair("Via", _headers._Via); ++arrayIndex; } @@ -3899,7 +3810,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Warning", _Warning); + array[arrayIndex] = new KeyValuePair("Warning", _headers._Warning); ++arrayIndex; } @@ -3910,7 +3821,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Allow", _Allow); + array[arrayIndex] = new KeyValuePair("Allow", _headers._Allow); ++arrayIndex; } @@ -3921,7 +3832,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Content-Length", _ContentLength); + array[arrayIndex] = new KeyValuePair("Content-Length", _headers._ContentLength); ++arrayIndex; } @@ -3932,7 +3843,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Content-Type", _ContentType); + array[arrayIndex] = new KeyValuePair("Content-Type", _headers._ContentType); ++arrayIndex; } @@ -3943,7 +3854,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Content-Encoding", _ContentEncoding); + array[arrayIndex] = new KeyValuePair("Content-Encoding", _headers._ContentEncoding); ++arrayIndex; } @@ -3954,7 +3865,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Content-Language", _ContentLanguage); + array[arrayIndex] = new KeyValuePair("Content-Language", _headers._ContentLanguage); ++arrayIndex; } @@ -3965,7 +3876,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Content-Location", _ContentLocation); + array[arrayIndex] = new KeyValuePair("Content-Location", _headers._ContentLocation); ++arrayIndex; } @@ -3976,7 +3887,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Content-MD5", _ContentMD5); + array[arrayIndex] = new KeyValuePair("Content-MD5", _headers._ContentMD5); ++arrayIndex; } @@ -3987,7 +3898,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Content-Range", _ContentRange); + array[arrayIndex] = new KeyValuePair("Content-Range", _headers._ContentRange); ++arrayIndex; } @@ -3998,7 +3909,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Expires", _Expires); + array[arrayIndex] = new KeyValuePair("Expires", _headers._Expires); ++arrayIndex; } @@ -4009,7 +3920,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Last-Modified", _LastModified); + array[arrayIndex] = new KeyValuePair("Last-Modified", _headers._LastModified); ++arrayIndex; } @@ -4020,7 +3931,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Accept", _Accept); + array[arrayIndex] = new KeyValuePair("Accept", _headers._Accept); ++arrayIndex; } @@ -4031,7 +3942,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Accept-Charset", _AcceptCharset); + array[arrayIndex] = new KeyValuePair("Accept-Charset", _headers._AcceptCharset); ++arrayIndex; } @@ -4042,7 +3953,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Accept-Encoding", _AcceptEncoding); + array[arrayIndex] = new KeyValuePair("Accept-Encoding", _headers._AcceptEncoding); ++arrayIndex; } @@ -4053,7 +3964,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Accept-Language", _AcceptLanguage); + array[arrayIndex] = new KeyValuePair("Accept-Language", _headers._AcceptLanguage); ++arrayIndex; } @@ -4064,7 +3975,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Authorization", _Authorization); + array[arrayIndex] = new KeyValuePair("Authorization", _headers._Authorization); ++arrayIndex; } @@ -4075,7 +3986,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Cookie", _Cookie); + array[arrayIndex] = new KeyValuePair("Cookie", _headers._Cookie); ++arrayIndex; } @@ -4086,7 +3997,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Expect", _Expect); + array[arrayIndex] = new KeyValuePair("Expect", _headers._Expect); ++arrayIndex; } @@ -4097,7 +4008,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("From", _From); + array[arrayIndex] = new KeyValuePair("From", _headers._From); ++arrayIndex; } @@ -4108,7 +4019,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Host", _Host); + array[arrayIndex] = new KeyValuePair("Host", _headers._Host); ++arrayIndex; } @@ -4119,7 +4030,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("If-Match", _IfMatch); + array[arrayIndex] = new KeyValuePair("If-Match", _headers._IfMatch); ++arrayIndex; } @@ -4130,7 +4041,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("If-Modified-Since", _IfModifiedSince); + array[arrayIndex] = new KeyValuePair("If-Modified-Since", _headers._IfModifiedSince); ++arrayIndex; } @@ -4141,7 +4052,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("If-None-Match", _IfNoneMatch); + array[arrayIndex] = new KeyValuePair("If-None-Match", _headers._IfNoneMatch); ++arrayIndex; } @@ -4152,7 +4063,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("If-Range", _IfRange); + array[arrayIndex] = new KeyValuePair("If-Range", _headers._IfRange); ++arrayIndex; } @@ -4163,7 +4074,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("If-Unmodified-Since", _IfUnmodifiedSince); + array[arrayIndex] = new KeyValuePair("If-Unmodified-Since", _headers._IfUnmodifiedSince); ++arrayIndex; } @@ -4174,7 +4085,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Max-Forwards", _MaxForwards); + array[arrayIndex] = new KeyValuePair("Max-Forwards", _headers._MaxForwards); ++arrayIndex; } @@ -4185,7 +4096,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Proxy-Authorization", _ProxyAuthorization); + array[arrayIndex] = new KeyValuePair("Proxy-Authorization", _headers._ProxyAuthorization); ++arrayIndex; } @@ -4196,7 +4107,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Referer", _Referer); + array[arrayIndex] = new KeyValuePair("Referer", _headers._Referer); ++arrayIndex; } @@ -4207,7 +4118,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Range", _Range); + array[arrayIndex] = new KeyValuePair("Range", _headers._Range); ++arrayIndex; } @@ -4218,7 +4129,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("TE", _TE); + array[arrayIndex] = new KeyValuePair("TE", _headers._TE); ++arrayIndex; } @@ -4229,7 +4140,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Translate", _Translate); + array[arrayIndex] = new KeyValuePair("Translate", _headers._Translate); ++arrayIndex; } @@ -4240,7 +4151,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("User-Agent", _UserAgent); + array[arrayIndex] = new KeyValuePair("User-Agent", _headers._UserAgent); ++arrayIndex; } @@ -4251,7 +4162,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Origin", _Origin); + array[arrayIndex] = new KeyValuePair("Origin", _headers._Origin); ++arrayIndex; } @@ -4262,7 +4173,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Access-Control-Request-Method", _AccessControlRequestMethod); + array[arrayIndex] = new KeyValuePair("Access-Control-Request-Method", _headers._AccessControlRequestMethod); ++arrayIndex; } @@ -4273,7 +4184,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Access-Control-Request-Headers", _AccessControlRequestHeaders); + array[arrayIndex] = new KeyValuePair("Access-Control-Request-Headers", _headers._AccessControlRequestHeaders); ++arrayIndex; } @@ -4297,12 +4208,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1L) != 0)) { - _CacheControl = AppendValue(_CacheControl, value); + _headers._CacheControl = AppendValue(_headers._CacheControl, value); } else { _bits |= 1L; - _CacheControl = new StringValues(value); + _headers._CacheControl = new StringValues(value); } return; } @@ -4311,12 +4222,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 131072L) != 0)) { - _ContentRange = AppendValue(_ContentRange, value); + _headers._ContentRange = AppendValue(_headers._ContentRange, value); } else { _bits |= 131072L; - _ContentRange = new StringValues(value); + _headers._ContentRange = new StringValues(value); } return; } @@ -4325,12 +4236,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 524288L) != 0)) { - _LastModified = AppendValue(_LastModified, value); + _headers._LastModified = AppendValue(_headers._LastModified, value); } else { _bits |= 524288L; - _LastModified = new StringValues(value); + _headers._LastModified = new StringValues(value); } return; } @@ -4339,12 +4250,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16777216L) != 0)) { - _Authorization = AppendValue(_Authorization, value); + _headers._Authorization = AppendValue(_headers._Authorization, value); } else { _bits |= 16777216L; - _Authorization = new StringValues(value); + _headers._Authorization = new StringValues(value); } return; } @@ -4353,12 +4264,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2147483648L) != 0)) { - _IfNoneMatch = AppendValue(_IfNoneMatch, value); + _headers._IfNoneMatch = AppendValue(_headers._IfNoneMatch, value); } else { _bits |= 2147483648L; - _IfNoneMatch = new StringValues(value); + _headers._IfNoneMatch = new StringValues(value); } return; } @@ -4371,12 +4282,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2L) != 0)) { - _Connection = AppendValue(_Connection, value); + _headers._Connection = AppendValue(_headers._Connection, value); } else { _bits |= 2L; - _Connection = new StringValues(value); + _headers._Connection = new StringValues(value); } return; } @@ -4385,12 +4296,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8L) != 0)) { - _KeepAlive = AppendValue(_KeepAlive, value); + _headers._KeepAlive = AppendValue(_headers._KeepAlive, value); } else { _bits |= 8L; - _KeepAlive = new StringValues(value); + _headers._KeepAlive = new StringValues(value); } return; } @@ -4399,12 +4310,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1099511627776L) != 0)) { - _UserAgent = AppendValue(_UserAgent, value); + _headers._UserAgent = AppendValue(_headers._UserAgent, value); } else { _bits |= 1099511627776L; - _UserAgent = new StringValues(value); + _headers._UserAgent = new StringValues(value); } return; } @@ -4417,12 +4328,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4L) != 0)) { - _Date = AppendValue(_Date, value); + _headers._Date = AppendValue(_headers._Date, value); } else { _bits |= 4L; - _Date = new StringValues(value); + _headers._Date = new StringValues(value); } return; } @@ -4431,12 +4342,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 134217728L) != 0)) { - _From = AppendValue(_From, value); + _headers._From = AppendValue(_headers._From, value); } else { _bits |= 134217728L; - _From = new StringValues(value); + _headers._From = new StringValues(value); } return; } @@ -4445,12 +4356,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 268435456L) != 0)) { - _Host = AppendValue(_Host, value); + _headers._Host = AppendValue(_headers._Host, value); } else { _bits |= 268435456L; - _Host = new StringValues(value); + _headers._Host = new StringValues(value); } return; } @@ -4463,12 +4374,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16L) != 0)) { - _Pragma = AppendValue(_Pragma, value); + _headers._Pragma = AppendValue(_headers._Pragma, value); } else { _bits |= 16L; - _Pragma = new StringValues(value); + _headers._Pragma = new StringValues(value); } return; } @@ -4477,12 +4388,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1048576L) != 0)) { - _Accept = AppendValue(_Accept, value); + _headers._Accept = AppendValue(_headers._Accept, value); } else { _bits |= 1048576L; - _Accept = new StringValues(value); + _headers._Accept = new StringValues(value); } return; } @@ -4491,12 +4402,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 33554432L) != 0)) { - _Cookie = AppendValue(_Cookie, value); + _headers._Cookie = AppendValue(_headers._Cookie, value); } else { _bits |= 33554432L; - _Cookie = new StringValues(value); + _headers._Cookie = new StringValues(value); } return; } @@ -4505,12 +4416,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 67108864L) != 0)) { - _Expect = AppendValue(_Expect, value); + _headers._Expect = AppendValue(_headers._Expect, value); } else { _bits |= 67108864L; - _Expect = new StringValues(value); + _headers._Expect = new StringValues(value); } return; } @@ -4519,12 +4430,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2199023255552L) != 0)) { - _Origin = AppendValue(_Origin, value); + _headers._Origin = AppendValue(_headers._Origin, value); } else { _bits |= 2199023255552L; - _Origin = new StringValues(value); + _headers._Origin = new StringValues(value); } return; } @@ -4537,12 +4448,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 32L) != 0)) { - _Trailer = AppendValue(_Trailer, value); + _headers._Trailer = AppendValue(_headers._Trailer, value); } else { _bits |= 32L; - _Trailer = new StringValues(value); + _headers._Trailer = new StringValues(value); } return; } @@ -4551,12 +4462,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 128L) != 0)) { - _Upgrade = AppendValue(_Upgrade, value); + _headers._Upgrade = AppendValue(_headers._Upgrade, value); } else { _bits |= 128L; - _Upgrade = new StringValues(value); + _headers._Upgrade = new StringValues(value); } return; } @@ -4565,12 +4476,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 512L) != 0)) { - _Warning = AppendValue(_Warning, value); + _headers._Warning = AppendValue(_headers._Warning, value); } else { _bits |= 512L; - _Warning = new StringValues(value); + _headers._Warning = new StringValues(value); } return; } @@ -4579,12 +4490,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 262144L) != 0)) { - _Expires = AppendValue(_Expires, value); + _headers._Expires = AppendValue(_headers._Expires, value); } else { _bits |= 262144L; - _Expires = new StringValues(value); + _headers._Expires = new StringValues(value); } return; } @@ -4593,12 +4504,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 68719476736L) != 0)) { - _Referer = AppendValue(_Referer, value); + _headers._Referer = AppendValue(_headers._Referer, value); } else { _bits |= 68719476736L; - _Referer = new StringValues(value); + _headers._Referer = new StringValues(value); } return; } @@ -4611,12 +4522,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 64L) != 0)) { - _TransferEncoding = AppendValue(_TransferEncoding, value); + _headers._TransferEncoding = AppendValue(_headers._TransferEncoding, value); } else { _bits |= 64L; - _TransferEncoding = new StringValues(value); + _headers._TransferEncoding = new StringValues(value); } return; } @@ -4625,12 +4536,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1073741824L) != 0)) { - _IfModifiedSince = AppendValue(_IfModifiedSince, value); + _headers._IfModifiedSince = AppendValue(_headers._IfModifiedSince, value); } else { _bits |= 1073741824L; - _IfModifiedSince = new StringValues(value); + _headers._IfModifiedSince = new StringValues(value); } return; } @@ -4643,12 +4554,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 256L) != 0)) { - _Via = AppendValue(_Via, value); + _headers._Via = AppendValue(_headers._Via, value); } else { _bits |= 256L; - _Via = new StringValues(value); + _headers._Via = new StringValues(value); } return; } @@ -4661,12 +4572,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1024L) != 0)) { - _Allow = AppendValue(_Allow, value); + _headers._Allow = AppendValue(_headers._Allow, value); } else { _bits |= 1024L; - _Allow = new StringValues(value); + _headers._Allow = new StringValues(value); } return; } @@ -4675,12 +4586,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 137438953472L) != 0)) { - _Range = AppendValue(_Range, value); + _headers._Range = AppendValue(_headers._Range, value); } else { _bits |= 137438953472L; - _Range = new StringValues(value); + _headers._Range = new StringValues(value); } return; } @@ -4693,12 +4604,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2048L) != 0)) { - _ContentLength = AppendValue(_ContentLength, value); + _headers._ContentLength = AppendValue(_headers._ContentLength, value); } else { _bits |= 2048L; - _ContentLength = new StringValues(value); + _headers._ContentLength = new StringValues(value); } return; } @@ -4707,12 +4618,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2097152L) != 0)) { - _AcceptCharset = AppendValue(_AcceptCharset, value); + _headers._AcceptCharset = AppendValue(_headers._AcceptCharset, value); } else { _bits |= 2097152L; - _AcceptCharset = new StringValues(value); + _headers._AcceptCharset = new StringValues(value); } return; } @@ -4725,12 +4636,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4096L) != 0)) { - _ContentType = AppendValue(_ContentType, value); + _headers._ContentType = AppendValue(_headers._ContentType, value); } else { _bits |= 4096L; - _ContentType = new StringValues(value); + _headers._ContentType = new StringValues(value); } return; } @@ -4739,12 +4650,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 17179869184L) != 0)) { - _MaxForwards = AppendValue(_MaxForwards, value); + _headers._MaxForwards = AppendValue(_headers._MaxForwards, value); } else { _bits |= 17179869184L; - _MaxForwards = new StringValues(value); + _headers._MaxForwards = new StringValues(value); } return; } @@ -4757,12 +4668,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8192L) != 0)) { - _ContentEncoding = AppendValue(_ContentEncoding, value); + _headers._ContentEncoding = AppendValue(_headers._ContentEncoding, value); } else { _bits |= 8192L; - _ContentEncoding = new StringValues(value); + _headers._ContentEncoding = new StringValues(value); } return; } @@ -4771,12 +4682,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16384L) != 0)) { - _ContentLanguage = AppendValue(_ContentLanguage, value); + _headers._ContentLanguage = AppendValue(_headers._ContentLanguage, value); } else { _bits |= 16384L; - _ContentLanguage = new StringValues(value); + _headers._ContentLanguage = new StringValues(value); } return; } @@ -4785,12 +4696,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 32768L) != 0)) { - _ContentLocation = AppendValue(_ContentLocation, value); + _headers._ContentLocation = AppendValue(_headers._ContentLocation, value); } else { _bits |= 32768L; - _ContentLocation = new StringValues(value); + _headers._ContentLocation = new StringValues(value); } return; } @@ -4803,12 +4714,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 65536L) != 0)) { - _ContentMD5 = AppendValue(_ContentMD5, value); + _headers._ContentMD5 = AppendValue(_headers._ContentMD5, value); } else { _bits |= 65536L; - _ContentMD5 = new StringValues(value); + _headers._ContentMD5 = new StringValues(value); } return; } @@ -4821,12 +4732,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4194304L) != 0)) { - _AcceptEncoding = AppendValue(_AcceptEncoding, value); + _headers._AcceptEncoding = AppendValue(_headers._AcceptEncoding, value); } else { _bits |= 4194304L; - _AcceptEncoding = new StringValues(value); + _headers._AcceptEncoding = new StringValues(value); } return; } @@ -4835,12 +4746,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8388608L) != 0)) { - _AcceptLanguage = AppendValue(_AcceptLanguage, value); + _headers._AcceptLanguage = AppendValue(_headers._AcceptLanguage, value); } else { _bits |= 8388608L; - _AcceptLanguage = new StringValues(value); + _headers._AcceptLanguage = new StringValues(value); } return; } @@ -4853,12 +4764,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 536870912L) != 0)) { - _IfMatch = AppendValue(_IfMatch, value); + _headers._IfMatch = AppendValue(_headers._IfMatch, value); } else { _bits |= 536870912L; - _IfMatch = new StringValues(value); + _headers._IfMatch = new StringValues(value); } return; } @@ -4867,12 +4778,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4294967296L) != 0)) { - _IfRange = AppendValue(_IfRange, value); + _headers._IfRange = AppendValue(_headers._IfRange, value); } else { _bits |= 4294967296L; - _IfRange = new StringValues(value); + _headers._IfRange = new StringValues(value); } return; } @@ -4885,12 +4796,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8589934592L) != 0)) { - _IfUnmodifiedSince = AppendValue(_IfUnmodifiedSince, value); + _headers._IfUnmodifiedSince = AppendValue(_headers._IfUnmodifiedSince, value); } else { _bits |= 8589934592L; - _IfUnmodifiedSince = new StringValues(value); + _headers._IfUnmodifiedSince = new StringValues(value); } return; } @@ -4899,12 +4810,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 34359738368L) != 0)) { - _ProxyAuthorization = AppendValue(_ProxyAuthorization, value); + _headers._ProxyAuthorization = AppendValue(_headers._ProxyAuthorization, value); } else { _bits |= 34359738368L; - _ProxyAuthorization = new StringValues(value); + _headers._ProxyAuthorization = new StringValues(value); } return; } @@ -4917,12 +4828,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 274877906944L) != 0)) { - _TE = AppendValue(_TE, value); + _headers._TE = AppendValue(_headers._TE, value); } else { _bits |= 274877906944L; - _TE = new StringValues(value); + _headers._TE = new StringValues(value); } return; } @@ -4935,12 +4846,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 549755813888L) != 0)) { - _Translate = AppendValue(_Translate, value); + _headers._Translate = AppendValue(_headers._Translate, value); } else { _bits |= 549755813888L; - _Translate = new StringValues(value); + _headers._Translate = new StringValues(value); } return; } @@ -4953,12 +4864,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4398046511104L) != 0)) { - _AccessControlRequestMethod = AppendValue(_AccessControlRequestMethod, value); + _headers._AccessControlRequestMethod = AppendValue(_headers._AccessControlRequestMethod, value); } else { _bits |= 4398046511104L; - _AccessControlRequestMethod = new StringValues(value); + _headers._AccessControlRequestMethod = new StringValues(value); } return; } @@ -4971,12 +4882,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8796093022208L) != 0)) { - _AccessControlRequestHeaders = AppendValue(_AccessControlRequestHeaders, value); + _headers._AccessControlRequestHeaders = AppendValue(_headers._AccessControlRequestHeaders, value); } else { _bits |= 8796093022208L; - _AccessControlRequestHeaders = new StringValues(value); + _headers._AccessControlRequestHeaders = new StringValues(value); } return; } @@ -4989,6 +4900,55 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http Unknown.TryGetValue(key, out existing); Unknown[key] = AppendValue(existing, value); } + private struct HeaderReferences + { + public StringValues _CacheControl; + public StringValues _Connection; + public StringValues _Date; + public StringValues _KeepAlive; + public StringValues _Pragma; + public StringValues _Trailer; + public StringValues _TransferEncoding; + public StringValues _Upgrade; + public StringValues _Via; + public StringValues _Warning; + public StringValues _Allow; + public StringValues _ContentLength; + public StringValues _ContentType; + public StringValues _ContentEncoding; + public StringValues _ContentLanguage; + public StringValues _ContentLocation; + public StringValues _ContentMD5; + public StringValues _ContentRange; + public StringValues _Expires; + public StringValues _LastModified; + public StringValues _Accept; + public StringValues _AcceptCharset; + public StringValues _AcceptEncoding; + public StringValues _AcceptLanguage; + public StringValues _Authorization; + public StringValues _Cookie; + public StringValues _Expect; + public StringValues _From; + public StringValues _Host; + public StringValues _IfMatch; + public StringValues _IfModifiedSince; + public StringValues _IfNoneMatch; + public StringValues _IfRange; + public StringValues _IfUnmodifiedSince; + public StringValues _MaxForwards; + public StringValues _ProxyAuthorization; + public StringValues _Referer; + public StringValues _Range; + public StringValues _TE; + public StringValues _Translate; + public StringValues _UserAgent; + public StringValues _Origin; + public StringValues _AccessControlRequestMethod; + public StringValues _AccessControlRequestHeaders; + + } + public partial struct Enumerator { public bool MoveNext() @@ -5135,7 +5095,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state0: if (((_bits & 1L) != 0)) { - _current = new KeyValuePair("Cache-Control", _collection._CacheControl); + _current = new KeyValuePair("Cache-Control", _collection._headers._CacheControl); _state = 1; return true; } @@ -5143,7 +5103,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state1: if (((_bits & 2L) != 0)) { - _current = new KeyValuePair("Connection", _collection._Connection); + _current = new KeyValuePair("Connection", _collection._headers._Connection); _state = 2; return true; } @@ -5151,7 +5111,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state2: if (((_bits & 4L) != 0)) { - _current = new KeyValuePair("Date", _collection._Date); + _current = new KeyValuePair("Date", _collection._headers._Date); _state = 3; return true; } @@ -5159,7 +5119,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state3: if (((_bits & 8L) != 0)) { - _current = new KeyValuePair("Keep-Alive", _collection._KeepAlive); + _current = new KeyValuePair("Keep-Alive", _collection._headers._KeepAlive); _state = 4; return true; } @@ -5167,7 +5127,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state4: if (((_bits & 16L) != 0)) { - _current = new KeyValuePair("Pragma", _collection._Pragma); + _current = new KeyValuePair("Pragma", _collection._headers._Pragma); _state = 5; return true; } @@ -5175,7 +5135,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state5: if (((_bits & 32L) != 0)) { - _current = new KeyValuePair("Trailer", _collection._Trailer); + _current = new KeyValuePair("Trailer", _collection._headers._Trailer); _state = 6; return true; } @@ -5183,7 +5143,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state6: if (((_bits & 64L) != 0)) { - _current = new KeyValuePair("Transfer-Encoding", _collection._TransferEncoding); + _current = new KeyValuePair("Transfer-Encoding", _collection._headers._TransferEncoding); _state = 7; return true; } @@ -5191,7 +5151,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state7: if (((_bits & 128L) != 0)) { - _current = new KeyValuePair("Upgrade", _collection._Upgrade); + _current = new KeyValuePair("Upgrade", _collection._headers._Upgrade); _state = 8; return true; } @@ -5199,7 +5159,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state8: if (((_bits & 256L) != 0)) { - _current = new KeyValuePair("Via", _collection._Via); + _current = new KeyValuePair("Via", _collection._headers._Via); _state = 9; return true; } @@ -5207,7 +5167,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state9: if (((_bits & 512L) != 0)) { - _current = new KeyValuePair("Warning", _collection._Warning); + _current = new KeyValuePair("Warning", _collection._headers._Warning); _state = 10; return true; } @@ -5215,7 +5175,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state10: if (((_bits & 1024L) != 0)) { - _current = new KeyValuePair("Allow", _collection._Allow); + _current = new KeyValuePair("Allow", _collection._headers._Allow); _state = 11; return true; } @@ -5223,7 +5183,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state11: if (((_bits & 2048L) != 0)) { - _current = new KeyValuePair("Content-Length", _collection._ContentLength); + _current = new KeyValuePair("Content-Length", _collection._headers._ContentLength); _state = 12; return true; } @@ -5231,7 +5191,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state12: if (((_bits & 4096L) != 0)) { - _current = new KeyValuePair("Content-Type", _collection._ContentType); + _current = new KeyValuePair("Content-Type", _collection._headers._ContentType); _state = 13; return true; } @@ -5239,7 +5199,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state13: if (((_bits & 8192L) != 0)) { - _current = new KeyValuePair("Content-Encoding", _collection._ContentEncoding); + _current = new KeyValuePair("Content-Encoding", _collection._headers._ContentEncoding); _state = 14; return true; } @@ -5247,7 +5207,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state14: if (((_bits & 16384L) != 0)) { - _current = new KeyValuePair("Content-Language", _collection._ContentLanguage); + _current = new KeyValuePair("Content-Language", _collection._headers._ContentLanguage); _state = 15; return true; } @@ -5255,7 +5215,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state15: if (((_bits & 32768L) != 0)) { - _current = new KeyValuePair("Content-Location", _collection._ContentLocation); + _current = new KeyValuePair("Content-Location", _collection._headers._ContentLocation); _state = 16; return true; } @@ -5263,7 +5223,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state16: if (((_bits & 65536L) != 0)) { - _current = new KeyValuePair("Content-MD5", _collection._ContentMD5); + _current = new KeyValuePair("Content-MD5", _collection._headers._ContentMD5); _state = 17; return true; } @@ -5271,7 +5231,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state17: if (((_bits & 131072L) != 0)) { - _current = new KeyValuePair("Content-Range", _collection._ContentRange); + _current = new KeyValuePair("Content-Range", _collection._headers._ContentRange); _state = 18; return true; } @@ -5279,7 +5239,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state18: if (((_bits & 262144L) != 0)) { - _current = new KeyValuePair("Expires", _collection._Expires); + _current = new KeyValuePair("Expires", _collection._headers._Expires); _state = 19; return true; } @@ -5287,7 +5247,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state19: if (((_bits & 524288L) != 0)) { - _current = new KeyValuePair("Last-Modified", _collection._LastModified); + _current = new KeyValuePair("Last-Modified", _collection._headers._LastModified); _state = 20; return true; } @@ -5295,7 +5255,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state20: if (((_bits & 1048576L) != 0)) { - _current = new KeyValuePair("Accept", _collection._Accept); + _current = new KeyValuePair("Accept", _collection._headers._Accept); _state = 21; return true; } @@ -5303,7 +5263,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state21: if (((_bits & 2097152L) != 0)) { - _current = new KeyValuePair("Accept-Charset", _collection._AcceptCharset); + _current = new KeyValuePair("Accept-Charset", _collection._headers._AcceptCharset); _state = 22; return true; } @@ -5311,7 +5271,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state22: if (((_bits & 4194304L) != 0)) { - _current = new KeyValuePair("Accept-Encoding", _collection._AcceptEncoding); + _current = new KeyValuePair("Accept-Encoding", _collection._headers._AcceptEncoding); _state = 23; return true; } @@ -5319,7 +5279,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state23: if (((_bits & 8388608L) != 0)) { - _current = new KeyValuePair("Accept-Language", _collection._AcceptLanguage); + _current = new KeyValuePair("Accept-Language", _collection._headers._AcceptLanguage); _state = 24; return true; } @@ -5327,7 +5287,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state24: if (((_bits & 16777216L) != 0)) { - _current = new KeyValuePair("Authorization", _collection._Authorization); + _current = new KeyValuePair("Authorization", _collection._headers._Authorization); _state = 25; return true; } @@ -5335,7 +5295,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state25: if (((_bits & 33554432L) != 0)) { - _current = new KeyValuePair("Cookie", _collection._Cookie); + _current = new KeyValuePair("Cookie", _collection._headers._Cookie); _state = 26; return true; } @@ -5343,7 +5303,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state26: if (((_bits & 67108864L) != 0)) { - _current = new KeyValuePair("Expect", _collection._Expect); + _current = new KeyValuePair("Expect", _collection._headers._Expect); _state = 27; return true; } @@ -5351,7 +5311,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state27: if (((_bits & 134217728L) != 0)) { - _current = new KeyValuePair("From", _collection._From); + _current = new KeyValuePair("From", _collection._headers._From); _state = 28; return true; } @@ -5359,7 +5319,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state28: if (((_bits & 268435456L) != 0)) { - _current = new KeyValuePair("Host", _collection._Host); + _current = new KeyValuePair("Host", _collection._headers._Host); _state = 29; return true; } @@ -5367,7 +5327,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state29: if (((_bits & 536870912L) != 0)) { - _current = new KeyValuePair("If-Match", _collection._IfMatch); + _current = new KeyValuePair("If-Match", _collection._headers._IfMatch); _state = 30; return true; } @@ -5375,7 +5335,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state30: if (((_bits & 1073741824L) != 0)) { - _current = new KeyValuePair("If-Modified-Since", _collection._IfModifiedSince); + _current = new KeyValuePair("If-Modified-Since", _collection._headers._IfModifiedSince); _state = 31; return true; } @@ -5383,7 +5343,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state31: if (((_bits & 2147483648L) != 0)) { - _current = new KeyValuePair("If-None-Match", _collection._IfNoneMatch); + _current = new KeyValuePair("If-None-Match", _collection._headers._IfNoneMatch); _state = 32; return true; } @@ -5391,7 +5351,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state32: if (((_bits & 4294967296L) != 0)) { - _current = new KeyValuePair("If-Range", _collection._IfRange); + _current = new KeyValuePair("If-Range", _collection._headers._IfRange); _state = 33; return true; } @@ -5399,7 +5359,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state33: if (((_bits & 8589934592L) != 0)) { - _current = new KeyValuePair("If-Unmodified-Since", _collection._IfUnmodifiedSince); + _current = new KeyValuePair("If-Unmodified-Since", _collection._headers._IfUnmodifiedSince); _state = 34; return true; } @@ -5407,7 +5367,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state34: if (((_bits & 17179869184L) != 0)) { - _current = new KeyValuePair("Max-Forwards", _collection._MaxForwards); + _current = new KeyValuePair("Max-Forwards", _collection._headers._MaxForwards); _state = 35; return true; } @@ -5415,7 +5375,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state35: if (((_bits & 34359738368L) != 0)) { - _current = new KeyValuePair("Proxy-Authorization", _collection._ProxyAuthorization); + _current = new KeyValuePair("Proxy-Authorization", _collection._headers._ProxyAuthorization); _state = 36; return true; } @@ -5423,7 +5383,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state36: if (((_bits & 68719476736L) != 0)) { - _current = new KeyValuePair("Referer", _collection._Referer); + _current = new KeyValuePair("Referer", _collection._headers._Referer); _state = 37; return true; } @@ -5431,7 +5391,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state37: if (((_bits & 137438953472L) != 0)) { - _current = new KeyValuePair("Range", _collection._Range); + _current = new KeyValuePair("Range", _collection._headers._Range); _state = 38; return true; } @@ -5439,7 +5399,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state38: if (((_bits & 274877906944L) != 0)) { - _current = new KeyValuePair("TE", _collection._TE); + _current = new KeyValuePair("TE", _collection._headers._TE); _state = 39; return true; } @@ -5447,7 +5407,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state39: if (((_bits & 549755813888L) != 0)) { - _current = new KeyValuePair("Translate", _collection._Translate); + _current = new KeyValuePair("Translate", _collection._headers._Translate); _state = 40; return true; } @@ -5455,7 +5415,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state40: if (((_bits & 1099511627776L) != 0)) { - _current = new KeyValuePair("User-Agent", _collection._UserAgent); + _current = new KeyValuePair("User-Agent", _collection._headers._UserAgent); _state = 41; return true; } @@ -5463,7 +5423,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state41: if (((_bits & 2199023255552L) != 0)) { - _current = new KeyValuePair("Origin", _collection._Origin); + _current = new KeyValuePair("Origin", _collection._headers._Origin); _state = 42; return true; } @@ -5471,7 +5431,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state42: if (((_bits & 4398046511104L) != 0)) { - _current = new KeyValuePair("Access-Control-Request-Method", _collection._AccessControlRequestMethod); + _current = new KeyValuePair("Access-Control-Request-Method", _collection._headers._AccessControlRequestMethod); _state = 43; return true; } @@ -5479,7 +5439,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state43: if (((_bits & 8796093022208L) != 0)) { - _current = new KeyValuePair("Access-Control-Request-Headers", _collection._AccessControlRequestHeaders); + _current = new KeyValuePair("Access-Control-Request-Headers", _collection._headers._AccessControlRequestHeaders); _state = 44; return true; } @@ -5504,49 +5464,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http }; private long _bits = 0; - - private StringValues _CacheControl; - private StringValues _Connection; - private StringValues _Date; - private StringValues _KeepAlive; - private StringValues _Pragma; - private StringValues _Trailer; - private StringValues _TransferEncoding; - private StringValues _Upgrade; - private StringValues _Via; - private StringValues _Warning; - private StringValues _Allow; - private StringValues _ContentLength; - private StringValues _ContentType; - private StringValues _ContentEncoding; - private StringValues _ContentLanguage; - private StringValues _ContentLocation; - private StringValues _ContentMD5; - private StringValues _ContentRange; - private StringValues _Expires; - private StringValues _LastModified; - private StringValues _AcceptRanges; - private StringValues _Age; - private StringValues _ETag; - private StringValues _Location; - private StringValues _ProxyAutheticate; - private StringValues _RetryAfter; - private StringValues _Server; - private StringValues _SetCookie; - private StringValues _Vary; - private StringValues _WWWAuthenticate; - private StringValues _AccessControlAllowCredentials; - private StringValues _AccessControlAllowHeaders; - private StringValues _AccessControlAllowMethods; - private StringValues _AccessControlAllowOrigin; - private StringValues _AccessControlExposeHeaders; - private StringValues _AccessControlMaxAge; - - private byte[] _rawConnection; - private byte[] _rawDate; - private byte[] _rawTransferEncoding; - private byte[] _rawContentLength; - private byte[] _rawServer; + private HeaderReferences _headers; public StringValues HeaderCacheControl { @@ -5554,14 +5472,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1L) != 0)) { - return _CacheControl; + return _headers._CacheControl; } return StringValues.Empty; } set { _bits |= 1L; - _CacheControl = value; + _headers._CacheControl = value; } } public StringValues HeaderConnection @@ -5570,15 +5488,15 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2L) != 0)) { - return _Connection; + return _headers._Connection; } return StringValues.Empty; } set { _bits |= 2L; - _Connection = value; - _rawConnection = null; + _headers._Connection = value; + _headers._rawConnection = null; } } public StringValues HeaderDate @@ -5587,15 +5505,15 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4L) != 0)) { - return _Date; + return _headers._Date; } return StringValues.Empty; } set { _bits |= 4L; - _Date = value; - _rawDate = null; + _headers._Date = value; + _headers._rawDate = null; } } public StringValues HeaderKeepAlive @@ -5604,14 +5522,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8L) != 0)) { - return _KeepAlive; + return _headers._KeepAlive; } return StringValues.Empty; } set { _bits |= 8L; - _KeepAlive = value; + _headers._KeepAlive = value; } } public StringValues HeaderPragma @@ -5620,14 +5538,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16L) != 0)) { - return _Pragma; + return _headers._Pragma; } return StringValues.Empty; } set { _bits |= 16L; - _Pragma = value; + _headers._Pragma = value; } } public StringValues HeaderTrailer @@ -5636,14 +5554,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 32L) != 0)) { - return _Trailer; + return _headers._Trailer; } return StringValues.Empty; } set { _bits |= 32L; - _Trailer = value; + _headers._Trailer = value; } } public StringValues HeaderTransferEncoding @@ -5652,15 +5570,15 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 64L) != 0)) { - return _TransferEncoding; + return _headers._TransferEncoding; } return StringValues.Empty; } set { _bits |= 64L; - _TransferEncoding = value; - _rawTransferEncoding = null; + _headers._TransferEncoding = value; + _headers._rawTransferEncoding = null; } } public StringValues HeaderUpgrade @@ -5669,14 +5587,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 128L) != 0)) { - return _Upgrade; + return _headers._Upgrade; } return StringValues.Empty; } set { _bits |= 128L; - _Upgrade = value; + _headers._Upgrade = value; } } public StringValues HeaderVia @@ -5685,14 +5603,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 256L) != 0)) { - return _Via; + return _headers._Via; } return StringValues.Empty; } set { _bits |= 256L; - _Via = value; + _headers._Via = value; } } public StringValues HeaderWarning @@ -5701,14 +5619,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 512L) != 0)) { - return _Warning; + return _headers._Warning; } return StringValues.Empty; } set { _bits |= 512L; - _Warning = value; + _headers._Warning = value; } } public StringValues HeaderAllow @@ -5717,14 +5635,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1024L) != 0)) { - return _Allow; + return _headers._Allow; } return StringValues.Empty; } set { _bits |= 1024L; - _Allow = value; + _headers._Allow = value; } } public StringValues HeaderContentLength @@ -5733,15 +5651,15 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2048L) != 0)) { - return _ContentLength; + return _headers._ContentLength; } return StringValues.Empty; } set { _bits |= 2048L; - _ContentLength = value; - _rawContentLength = null; + _headers._ContentLength = value; + _headers._rawContentLength = null; } } public StringValues HeaderContentType @@ -5750,14 +5668,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4096L) != 0)) { - return _ContentType; + return _headers._ContentType; } return StringValues.Empty; } set { _bits |= 4096L; - _ContentType = value; + _headers._ContentType = value; } } public StringValues HeaderContentEncoding @@ -5766,14 +5684,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8192L) != 0)) { - return _ContentEncoding; + return _headers._ContentEncoding; } return StringValues.Empty; } set { _bits |= 8192L; - _ContentEncoding = value; + _headers._ContentEncoding = value; } } public StringValues HeaderContentLanguage @@ -5782,14 +5700,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16384L) != 0)) { - return _ContentLanguage; + return _headers._ContentLanguage; } return StringValues.Empty; } set { _bits |= 16384L; - _ContentLanguage = value; + _headers._ContentLanguage = value; } } public StringValues HeaderContentLocation @@ -5798,14 +5716,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 32768L) != 0)) { - return _ContentLocation; + return _headers._ContentLocation; } return StringValues.Empty; } set { _bits |= 32768L; - _ContentLocation = value; + _headers._ContentLocation = value; } } public StringValues HeaderContentMD5 @@ -5814,14 +5732,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 65536L) != 0)) { - return _ContentMD5; + return _headers._ContentMD5; } return StringValues.Empty; } set { _bits |= 65536L; - _ContentMD5 = value; + _headers._ContentMD5 = value; } } public StringValues HeaderContentRange @@ -5830,14 +5748,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 131072L) != 0)) { - return _ContentRange; + return _headers._ContentRange; } return StringValues.Empty; } set { _bits |= 131072L; - _ContentRange = value; + _headers._ContentRange = value; } } public StringValues HeaderExpires @@ -5846,14 +5764,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 262144L) != 0)) { - return _Expires; + return _headers._Expires; } return StringValues.Empty; } set { _bits |= 262144L; - _Expires = value; + _headers._Expires = value; } } public StringValues HeaderLastModified @@ -5862,14 +5780,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 524288L) != 0)) { - return _LastModified; + return _headers._LastModified; } return StringValues.Empty; } set { _bits |= 524288L; - _LastModified = value; + _headers._LastModified = value; } } public StringValues HeaderAcceptRanges @@ -5878,14 +5796,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1048576L) != 0)) { - return _AcceptRanges; + return _headers._AcceptRanges; } return StringValues.Empty; } set { _bits |= 1048576L; - _AcceptRanges = value; + _headers._AcceptRanges = value; } } public StringValues HeaderAge @@ -5894,14 +5812,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2097152L) != 0)) { - return _Age; + return _headers._Age; } return StringValues.Empty; } set { _bits |= 2097152L; - _Age = value; + _headers._Age = value; } } public StringValues HeaderETag @@ -5910,14 +5828,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4194304L) != 0)) { - return _ETag; + return _headers._ETag; } return StringValues.Empty; } set { _bits |= 4194304L; - _ETag = value; + _headers._ETag = value; } } public StringValues HeaderLocation @@ -5926,14 +5844,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8388608L) != 0)) { - return _Location; + return _headers._Location; } return StringValues.Empty; } set { _bits |= 8388608L; - _Location = value; + _headers._Location = value; } } public StringValues HeaderProxyAutheticate @@ -5942,14 +5860,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16777216L) != 0)) { - return _ProxyAutheticate; + return _headers._ProxyAutheticate; } return StringValues.Empty; } set { _bits |= 16777216L; - _ProxyAutheticate = value; + _headers._ProxyAutheticate = value; } } public StringValues HeaderRetryAfter @@ -5958,14 +5876,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 33554432L) != 0)) { - return _RetryAfter; + return _headers._RetryAfter; } return StringValues.Empty; } set { _bits |= 33554432L; - _RetryAfter = value; + _headers._RetryAfter = value; } } public StringValues HeaderServer @@ -5974,15 +5892,15 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 67108864L) != 0)) { - return _Server; + return _headers._Server; } return StringValues.Empty; } set { _bits |= 67108864L; - _Server = value; - _rawServer = null; + _headers._Server = value; + _headers._rawServer = null; } } public StringValues HeaderSetCookie @@ -5991,14 +5909,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 134217728L) != 0)) { - return _SetCookie; + return _headers._SetCookie; } return StringValues.Empty; } set { _bits |= 134217728L; - _SetCookie = value; + _headers._SetCookie = value; } } public StringValues HeaderVary @@ -6007,14 +5925,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 268435456L) != 0)) { - return _Vary; + return _headers._Vary; } return StringValues.Empty; } set { _bits |= 268435456L; - _Vary = value; + _headers._Vary = value; } } public StringValues HeaderWWWAuthenticate @@ -6023,14 +5941,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 536870912L) != 0)) { - return _WWWAuthenticate; + return _headers._WWWAuthenticate; } return StringValues.Empty; } set { _bits |= 536870912L; - _WWWAuthenticate = value; + _headers._WWWAuthenticate = value; } } public StringValues HeaderAccessControlAllowCredentials @@ -6039,14 +5957,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1073741824L) != 0)) { - return _AccessControlAllowCredentials; + return _headers._AccessControlAllowCredentials; } return StringValues.Empty; } set { _bits |= 1073741824L; - _AccessControlAllowCredentials = value; + _headers._AccessControlAllowCredentials = value; } } public StringValues HeaderAccessControlAllowHeaders @@ -6055,14 +5973,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2147483648L) != 0)) { - return _AccessControlAllowHeaders; + return _headers._AccessControlAllowHeaders; } return StringValues.Empty; } set { _bits |= 2147483648L; - _AccessControlAllowHeaders = value; + _headers._AccessControlAllowHeaders = value; } } public StringValues HeaderAccessControlAllowMethods @@ -6071,14 +5989,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4294967296L) != 0)) { - return _AccessControlAllowMethods; + return _headers._AccessControlAllowMethods; } return StringValues.Empty; } set { _bits |= 4294967296L; - _AccessControlAllowMethods = value; + _headers._AccessControlAllowMethods = value; } } public StringValues HeaderAccessControlAllowOrigin @@ -6087,14 +6005,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8589934592L) != 0)) { - return _AccessControlAllowOrigin; + return _headers._AccessControlAllowOrigin; } return StringValues.Empty; } set { _bits |= 8589934592L; - _AccessControlAllowOrigin = value; + _headers._AccessControlAllowOrigin = value; } } public StringValues HeaderAccessControlExposeHeaders @@ -6103,14 +6021,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 17179869184L) != 0)) { - return _AccessControlExposeHeaders; + return _headers._AccessControlExposeHeaders; } return StringValues.Empty; } set { _bits |= 17179869184L; - _AccessControlExposeHeaders = value; + _headers._AccessControlExposeHeaders = value; } } public StringValues HeaderAccessControlMaxAge @@ -6119,46 +6037,46 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 34359738368L) != 0)) { - return _AccessControlMaxAge; + return _headers._AccessControlMaxAge; } return StringValues.Empty; } set { _bits |= 34359738368L; - _AccessControlMaxAge = value; + _headers._AccessControlMaxAge = value; } } public void SetRawConnection(StringValues value, byte[] raw) { _bits |= 2L; - _Connection = value; - _rawConnection = raw; + _headers._Connection = value; + _headers._rawConnection = raw; } public void SetRawDate(StringValues value, byte[] raw) { _bits |= 4L; - _Date = value; - _rawDate = raw; + _headers._Date = value; + _headers._rawDate = raw; } public void SetRawTransferEncoding(StringValues value, byte[] raw) { _bits |= 64L; - _TransferEncoding = value; - _rawTransferEncoding = raw; + _headers._TransferEncoding = value; + _headers._rawTransferEncoding = raw; } public void SetRawContentLength(StringValues value, byte[] raw) { _bits |= 2048L; - _ContentLength = value; - _rawContentLength = raw; + _headers._ContentLength = value; + _headers._rawContentLength = raw; } public void SetRawServer(StringValues value, byte[] raw) { _bits |= 67108864L; - _Server = value; - _rawServer = raw; + _headers._Server = value; + _headers._rawServer = raw; } protected override int GetCountFast() { @@ -6174,7 +6092,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1L) != 0)) { - return _CacheControl; + return _headers._CacheControl; } else { @@ -6186,7 +6104,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 131072L) != 0)) { - return _ContentRange; + return _headers._ContentRange; } else { @@ -6198,7 +6116,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 524288L) != 0)) { - return _LastModified; + return _headers._LastModified; } else { @@ -6210,7 +6128,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1048576L) != 0)) { - return _AcceptRanges; + return _headers._AcceptRanges; } else { @@ -6226,7 +6144,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2L) != 0)) { - return _Connection; + return _headers._Connection; } else { @@ -6238,7 +6156,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8L) != 0)) { - return _KeepAlive; + return _headers._KeepAlive; } else { @@ -6250,7 +6168,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 134217728L) != 0)) { - return _SetCookie; + return _headers._SetCookie; } else { @@ -6266,7 +6184,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4L) != 0)) { - return _Date; + return _headers._Date; } else { @@ -6278,7 +6196,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4194304L) != 0)) { - return _ETag; + return _headers._ETag; } else { @@ -6290,7 +6208,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 268435456L) != 0)) { - return _Vary; + return _headers._Vary; } else { @@ -6306,7 +6224,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16L) != 0)) { - return _Pragma; + return _headers._Pragma; } else { @@ -6318,7 +6236,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 67108864L) != 0)) { - return _Server; + return _headers._Server; } else { @@ -6334,7 +6252,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 32L) != 0)) { - return _Trailer; + return _headers._Trailer; } else { @@ -6346,7 +6264,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 128L) != 0)) { - return _Upgrade; + return _headers._Upgrade; } else { @@ -6358,7 +6276,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 512L) != 0)) { - return _Warning; + return _headers._Warning; } else { @@ -6370,7 +6288,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 262144L) != 0)) { - return _Expires; + return _headers._Expires; } else { @@ -6386,7 +6304,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 64L) != 0)) { - return _TransferEncoding; + return _headers._TransferEncoding; } else { @@ -6398,7 +6316,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16777216L) != 0)) { - return _ProxyAutheticate; + return _headers._ProxyAutheticate; } else { @@ -6414,7 +6332,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 256L) != 0)) { - return _Via; + return _headers._Via; } else { @@ -6426,7 +6344,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2097152L) != 0)) { - return _Age; + return _headers._Age; } else { @@ -6442,7 +6360,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1024L) != 0)) { - return _Allow; + return _headers._Allow; } else { @@ -6458,7 +6376,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2048L) != 0)) { - return _ContentLength; + return _headers._ContentLength; } else { @@ -6474,7 +6392,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4096L) != 0)) { - return _ContentType; + return _headers._ContentType; } else { @@ -6490,7 +6408,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8192L) != 0)) { - return _ContentEncoding; + return _headers._ContentEncoding; } else { @@ -6502,7 +6420,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16384L) != 0)) { - return _ContentLanguage; + return _headers._ContentLanguage; } else { @@ -6514,7 +6432,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 32768L) != 0)) { - return _ContentLocation; + return _headers._ContentLocation; } else { @@ -6526,7 +6444,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 536870912L) != 0)) { - return _WWWAuthenticate; + return _headers._WWWAuthenticate; } else { @@ -6542,7 +6460,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 65536L) != 0)) { - return _ContentMD5; + return _headers._ContentMD5; } else { @@ -6554,7 +6472,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 33554432L) != 0)) { - return _RetryAfter; + return _headers._RetryAfter; } else { @@ -6570,7 +6488,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8388608L) != 0)) { - return _Location; + return _headers._Location; } else { @@ -6586,7 +6504,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1073741824L) != 0)) { - return _AccessControlAllowCredentials; + return _headers._AccessControlAllowCredentials; } else { @@ -6602,7 +6520,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2147483648L) != 0)) { - return _AccessControlAllowHeaders; + return _headers._AccessControlAllowHeaders; } else { @@ -6614,7 +6532,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4294967296L) != 0)) { - return _AccessControlAllowMethods; + return _headers._AccessControlAllowMethods; } else { @@ -6630,7 +6548,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8589934592L) != 0)) { - return _AccessControlAllowOrigin; + return _headers._AccessControlAllowOrigin; } else { @@ -6646,7 +6564,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 17179869184L) != 0)) { - return _AccessControlExposeHeaders; + return _headers._AccessControlExposeHeaders; } else { @@ -6662,7 +6580,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 34359738368L) != 0)) { - return _AccessControlMaxAge; + return _headers._AccessControlMaxAge; } else { @@ -6688,7 +6606,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1L) != 0)) { - value = _CacheControl; + value = _headers._CacheControl; return true; } else @@ -6702,7 +6620,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 131072L) != 0)) { - value = _ContentRange; + value = _headers._ContentRange; return true; } else @@ -6716,7 +6634,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 524288L) != 0)) { - value = _LastModified; + value = _headers._LastModified; return true; } else @@ -6730,7 +6648,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1048576L) != 0)) { - value = _AcceptRanges; + value = _headers._AcceptRanges; return true; } else @@ -6748,7 +6666,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2L) != 0)) { - value = _Connection; + value = _headers._Connection; return true; } else @@ -6762,7 +6680,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8L) != 0)) { - value = _KeepAlive; + value = _headers._KeepAlive; return true; } else @@ -6776,7 +6694,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 134217728L) != 0)) { - value = _SetCookie; + value = _headers._SetCookie; return true; } else @@ -6794,7 +6712,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4L) != 0)) { - value = _Date; + value = _headers._Date; return true; } else @@ -6808,7 +6726,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4194304L) != 0)) { - value = _ETag; + value = _headers._ETag; return true; } else @@ -6822,7 +6740,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 268435456L) != 0)) { - value = _Vary; + value = _headers._Vary; return true; } else @@ -6840,7 +6758,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16L) != 0)) { - value = _Pragma; + value = _headers._Pragma; return true; } else @@ -6854,7 +6772,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 67108864L) != 0)) { - value = _Server; + value = _headers._Server; return true; } else @@ -6872,7 +6790,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 32L) != 0)) { - value = _Trailer; + value = _headers._Trailer; return true; } else @@ -6886,7 +6804,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 128L) != 0)) { - value = _Upgrade; + value = _headers._Upgrade; return true; } else @@ -6900,7 +6818,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 512L) != 0)) { - value = _Warning; + value = _headers._Warning; return true; } else @@ -6914,7 +6832,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 262144L) != 0)) { - value = _Expires; + value = _headers._Expires; return true; } else @@ -6932,7 +6850,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 64L) != 0)) { - value = _TransferEncoding; + value = _headers._TransferEncoding; return true; } else @@ -6946,7 +6864,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16777216L) != 0)) { - value = _ProxyAutheticate; + value = _headers._ProxyAutheticate; return true; } else @@ -6964,7 +6882,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 256L) != 0)) { - value = _Via; + value = _headers._Via; return true; } else @@ -6978,7 +6896,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2097152L) != 0)) { - value = _Age; + value = _headers._Age; return true; } else @@ -6996,7 +6914,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1024L) != 0)) { - value = _Allow; + value = _headers._Allow; return true; } else @@ -7014,7 +6932,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2048L) != 0)) { - value = _ContentLength; + value = _headers._ContentLength; return true; } else @@ -7032,7 +6950,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4096L) != 0)) { - value = _ContentType; + value = _headers._ContentType; return true; } else @@ -7050,7 +6968,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8192L) != 0)) { - value = _ContentEncoding; + value = _headers._ContentEncoding; return true; } else @@ -7064,7 +6982,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 16384L) != 0)) { - value = _ContentLanguage; + value = _headers._ContentLanguage; return true; } else @@ -7078,7 +6996,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 32768L) != 0)) { - value = _ContentLocation; + value = _headers._ContentLocation; return true; } else @@ -7092,7 +7010,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 536870912L) != 0)) { - value = _WWWAuthenticate; + value = _headers._WWWAuthenticate; return true; } else @@ -7110,7 +7028,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 65536L) != 0)) { - value = _ContentMD5; + value = _headers._ContentMD5; return true; } else @@ -7124,7 +7042,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 33554432L) != 0)) { - value = _RetryAfter; + value = _headers._RetryAfter; return true; } else @@ -7142,7 +7060,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8388608L) != 0)) { - value = _Location; + value = _headers._Location; return true; } else @@ -7160,7 +7078,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 1073741824L) != 0)) { - value = _AccessControlAllowCredentials; + value = _headers._AccessControlAllowCredentials; return true; } else @@ -7178,7 +7096,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 2147483648L) != 0)) { - value = _AccessControlAllowHeaders; + value = _headers._AccessControlAllowHeaders; return true; } else @@ -7192,7 +7110,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 4294967296L) != 0)) { - value = _AccessControlAllowMethods; + value = _headers._AccessControlAllowMethods; return true; } else @@ -7210,7 +7128,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 8589934592L) != 0)) { - value = _AccessControlAllowOrigin; + value = _headers._AccessControlAllowOrigin; return true; } else @@ -7228,7 +7146,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 17179869184L) != 0)) { - value = _AccessControlExposeHeaders; + value = _headers._AccessControlExposeHeaders; return true; } else @@ -7246,7 +7164,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http { if (((_bits & 34359738368L) != 0)) { - value = _AccessControlMaxAge; + value = _headers._AccessControlMaxAge; return true; } else @@ -7270,28 +7188,28 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Cache-Control".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 1L; - _CacheControl = value; + _headers._CacheControl = value; return; } if ("Content-Range".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 131072L; - _ContentRange = value; + _headers._ContentRange = value; return; } if ("Last-Modified".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 524288L; - _LastModified = value; + _headers._LastModified = value; return; } if ("Accept-Ranges".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 1048576L; - _AcceptRanges = value; + _headers._AcceptRanges = value; return; } } @@ -7302,22 +7220,22 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Connection".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 2L; - _Connection = value; - _rawConnection = null; + _headers._Connection = value; + _headers._rawConnection = null; return; } if ("Keep-Alive".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 8L; - _KeepAlive = value; + _headers._KeepAlive = value; return; } if ("Set-Cookie".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 134217728L; - _SetCookie = value; + _headers._SetCookie = value; return; } } @@ -7328,22 +7246,22 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Date".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 4L; - _Date = value; - _rawDate = null; + _headers._Date = value; + _headers._rawDate = null; return; } if ("ETag".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 4194304L; - _ETag = value; + _headers._ETag = value; return; } if ("Vary".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 268435456L; - _Vary = value; + _headers._Vary = value; return; } } @@ -7354,15 +7272,15 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Pragma".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 16L; - _Pragma = value; + _headers._Pragma = value; return; } if ("Server".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 67108864L; - _Server = value; - _rawServer = null; + _headers._Server = value; + _headers._rawServer = null; return; } } @@ -7373,28 +7291,28 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Trailer".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 32L; - _Trailer = value; + _headers._Trailer = value; return; } if ("Upgrade".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 128L; - _Upgrade = value; + _headers._Upgrade = value; return; } if ("Warning".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 512L; - _Warning = value; + _headers._Warning = value; return; } if ("Expires".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 262144L; - _Expires = value; + _headers._Expires = value; return; } } @@ -7405,15 +7323,15 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Transfer-Encoding".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 64L; - _TransferEncoding = value; - _rawTransferEncoding = null; + _headers._TransferEncoding = value; + _headers._rawTransferEncoding = null; return; } if ("Proxy-Autheticate".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 16777216L; - _ProxyAutheticate = value; + _headers._ProxyAutheticate = value; return; } } @@ -7424,14 +7342,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Via".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 256L; - _Via = value; + _headers._Via = value; return; } if ("Age".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 2097152L; - _Age = value; + _headers._Age = value; return; } } @@ -7442,7 +7360,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Allow".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 1024L; - _Allow = value; + _headers._Allow = value; return; } } @@ -7453,8 +7371,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Content-Length".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 2048L; - _ContentLength = value; - _rawContentLength = null; + _headers._ContentLength = value; + _headers._rawContentLength = null; return; } } @@ -7465,7 +7383,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Content-Type".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 4096L; - _ContentType = value; + _headers._ContentType = value; return; } } @@ -7476,28 +7394,28 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Content-Encoding".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 8192L; - _ContentEncoding = value; + _headers._ContentEncoding = value; return; } if ("Content-Language".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 16384L; - _ContentLanguage = value; + _headers._ContentLanguage = value; return; } if ("Content-Location".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 32768L; - _ContentLocation = value; + _headers._ContentLocation = value; return; } if ("WWW-Authenticate".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 536870912L; - _WWWAuthenticate = value; + _headers._WWWAuthenticate = value; return; } } @@ -7508,14 +7426,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Content-MD5".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 65536L; - _ContentMD5 = value; + _headers._ContentMD5 = value; return; } if ("Retry-After".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 33554432L; - _RetryAfter = value; + _headers._RetryAfter = value; return; } } @@ -7526,7 +7444,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Location".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 8388608L; - _Location = value; + _headers._Location = value; return; } } @@ -7537,7 +7455,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Access-Control-Allow-Credentials".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 1073741824L; - _AccessControlAllowCredentials = value; + _headers._AccessControlAllowCredentials = value; return; } } @@ -7548,14 +7466,14 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Access-Control-Allow-Headers".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 2147483648L; - _AccessControlAllowHeaders = value; + _headers._AccessControlAllowHeaders = value; return; } if ("Access-Control-Allow-Methods".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 4294967296L; - _AccessControlAllowMethods = value; + _headers._AccessControlAllowMethods = value; return; } } @@ -7566,7 +7484,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Access-Control-Allow-Origin".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 8589934592L; - _AccessControlAllowOrigin = value; + _headers._AccessControlAllowOrigin = value; return; } } @@ -7577,7 +7495,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Access-Control-Expose-Headers".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 17179869184L; - _AccessControlExposeHeaders = value; + _headers._AccessControlExposeHeaders = value; return; } } @@ -7588,7 +7506,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ("Access-Control-Max-Age".Equals(key, StringComparison.OrdinalIgnoreCase)) { _bits |= 34359738368L; - _AccessControlMaxAge = value; + _headers._AccessControlMaxAge = value; return; } } @@ -7609,7 +7527,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 1L; - _CacheControl = value; + _headers._CacheControl = value; return; } @@ -7620,7 +7538,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 131072L; - _ContentRange = value; + _headers._ContentRange = value; return; } @@ -7631,7 +7549,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 524288L; - _LastModified = value; + _headers._LastModified = value; return; } @@ -7642,7 +7560,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 1048576L; - _AcceptRanges = value; + _headers._AcceptRanges = value; return; } } @@ -7657,8 +7575,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 2L; - _Connection = value; - _rawConnection = null; + _headers._Connection = value; + _headers._rawConnection = null; return; } @@ -7669,7 +7587,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 8L; - _KeepAlive = value; + _headers._KeepAlive = value; return; } @@ -7680,7 +7598,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 134217728L; - _SetCookie = value; + _headers._SetCookie = value; return; } } @@ -7695,8 +7613,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 4L; - _Date = value; - _rawDate = null; + _headers._Date = value; + _headers._rawDate = null; return; } @@ -7707,7 +7625,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 4194304L; - _ETag = value; + _headers._ETag = value; return; } @@ -7718,7 +7636,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 268435456L; - _Vary = value; + _headers._Vary = value; return; } } @@ -7733,7 +7651,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 16L; - _Pragma = value; + _headers._Pragma = value; return; } @@ -7744,8 +7662,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 67108864L; - _Server = value; - _rawServer = null; + _headers._Server = value; + _headers._rawServer = null; return; } } @@ -7760,7 +7678,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 32L; - _Trailer = value; + _headers._Trailer = value; return; } @@ -7771,7 +7689,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 128L; - _Upgrade = value; + _headers._Upgrade = value; return; } @@ -7782,7 +7700,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 512L; - _Warning = value; + _headers._Warning = value; return; } @@ -7793,7 +7711,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 262144L; - _Expires = value; + _headers._Expires = value; return; } } @@ -7808,8 +7726,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 64L; - _TransferEncoding = value; - _rawTransferEncoding = null; + _headers._TransferEncoding = value; + _headers._rawTransferEncoding = null; return; } @@ -7820,7 +7738,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 16777216L; - _ProxyAutheticate = value; + _headers._ProxyAutheticate = value; return; } } @@ -7835,7 +7753,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 256L; - _Via = value; + _headers._Via = value; return; } @@ -7846,7 +7764,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 2097152L; - _Age = value; + _headers._Age = value; return; } } @@ -7861,7 +7779,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 1024L; - _Allow = value; + _headers._Allow = value; return; } } @@ -7876,8 +7794,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 2048L; - _ContentLength = value; - _rawContentLength = null; + _headers._ContentLength = value; + _headers._rawContentLength = null; return; } } @@ -7892,7 +7810,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 4096L; - _ContentType = value; + _headers._ContentType = value; return; } } @@ -7907,7 +7825,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 8192L; - _ContentEncoding = value; + _headers._ContentEncoding = value; return; } @@ -7918,7 +7836,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 16384L; - _ContentLanguage = value; + _headers._ContentLanguage = value; return; } @@ -7929,7 +7847,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 32768L; - _ContentLocation = value; + _headers._ContentLocation = value; return; } @@ -7940,7 +7858,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 536870912L; - _WWWAuthenticate = value; + _headers._WWWAuthenticate = value; return; } } @@ -7955,7 +7873,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 65536L; - _ContentMD5 = value; + _headers._ContentMD5 = value; return; } @@ -7966,7 +7884,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 33554432L; - _RetryAfter = value; + _headers._RetryAfter = value; return; } } @@ -7981,7 +7899,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 8388608L; - _Location = value; + _headers._Location = value; return; } } @@ -7996,7 +7914,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 1073741824L; - _AccessControlAllowCredentials = value; + _headers._AccessControlAllowCredentials = value; return; } } @@ -8011,7 +7929,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 2147483648L; - _AccessControlAllowHeaders = value; + _headers._AccessControlAllowHeaders = value; return; } @@ -8022,7 +7940,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 4294967296L; - _AccessControlAllowMethods = value; + _headers._AccessControlAllowMethods = value; return; } } @@ -8037,7 +7955,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 8589934592L; - _AccessControlAllowOrigin = value; + _headers._AccessControlAllowOrigin = value; return; } } @@ -8052,7 +7970,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 17179869184L; - _AccessControlExposeHeaders = value; + _headers._AccessControlExposeHeaders = value; return; } } @@ -8067,7 +7985,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); } _bits |= 34359738368L; - _AccessControlMaxAge = value; + _headers._AccessControlMaxAge = value; return; } } @@ -8086,7 +8004,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 1L) != 0)) { _bits &= ~1L; - _CacheControl = StringValues.Empty; + _headers._CacheControl = StringValues.Empty; return true; } else @@ -8100,7 +8018,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 131072L) != 0)) { _bits &= ~131072L; - _ContentRange = StringValues.Empty; + _headers._ContentRange = StringValues.Empty; return true; } else @@ -8114,7 +8032,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 524288L) != 0)) { _bits &= ~524288L; - _LastModified = StringValues.Empty; + _headers._LastModified = StringValues.Empty; return true; } else @@ -8128,7 +8046,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 1048576L) != 0)) { _bits &= ~1048576L; - _AcceptRanges = StringValues.Empty; + _headers._AcceptRanges = StringValues.Empty; return true; } else @@ -8146,8 +8064,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 2L) != 0)) { _bits &= ~2L; - _Connection = StringValues.Empty; - _rawConnection = null; + _headers._Connection = StringValues.Empty; + _headers._rawConnection = null; return true; } else @@ -8161,7 +8079,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 8L) != 0)) { _bits &= ~8L; - _KeepAlive = StringValues.Empty; + _headers._KeepAlive = StringValues.Empty; return true; } else @@ -8175,7 +8093,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 134217728L) != 0)) { _bits &= ~134217728L; - _SetCookie = StringValues.Empty; + _headers._SetCookie = StringValues.Empty; return true; } else @@ -8193,8 +8111,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 4L) != 0)) { _bits &= ~4L; - _Date = StringValues.Empty; - _rawDate = null; + _headers._Date = StringValues.Empty; + _headers._rawDate = null; return true; } else @@ -8208,7 +8126,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 4194304L) != 0)) { _bits &= ~4194304L; - _ETag = StringValues.Empty; + _headers._ETag = StringValues.Empty; return true; } else @@ -8222,7 +8140,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 268435456L) != 0)) { _bits &= ~268435456L; - _Vary = StringValues.Empty; + _headers._Vary = StringValues.Empty; return true; } else @@ -8240,7 +8158,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 16L) != 0)) { _bits &= ~16L; - _Pragma = StringValues.Empty; + _headers._Pragma = StringValues.Empty; return true; } else @@ -8254,8 +8172,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 67108864L) != 0)) { _bits &= ~67108864L; - _Server = StringValues.Empty; - _rawServer = null; + _headers._Server = StringValues.Empty; + _headers._rawServer = null; return true; } else @@ -8273,7 +8191,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 32L) != 0)) { _bits &= ~32L; - _Trailer = StringValues.Empty; + _headers._Trailer = StringValues.Empty; return true; } else @@ -8287,7 +8205,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 128L) != 0)) { _bits &= ~128L; - _Upgrade = StringValues.Empty; + _headers._Upgrade = StringValues.Empty; return true; } else @@ -8301,7 +8219,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 512L) != 0)) { _bits &= ~512L; - _Warning = StringValues.Empty; + _headers._Warning = StringValues.Empty; return true; } else @@ -8315,7 +8233,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 262144L) != 0)) { _bits &= ~262144L; - _Expires = StringValues.Empty; + _headers._Expires = StringValues.Empty; return true; } else @@ -8333,8 +8251,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 64L) != 0)) { _bits &= ~64L; - _TransferEncoding = StringValues.Empty; - _rawTransferEncoding = null; + _headers._TransferEncoding = StringValues.Empty; + _headers._rawTransferEncoding = null; return true; } else @@ -8348,7 +8266,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 16777216L) != 0)) { _bits &= ~16777216L; - _ProxyAutheticate = StringValues.Empty; + _headers._ProxyAutheticate = StringValues.Empty; return true; } else @@ -8366,7 +8284,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 256L) != 0)) { _bits &= ~256L; - _Via = StringValues.Empty; + _headers._Via = StringValues.Empty; return true; } else @@ -8380,7 +8298,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 2097152L) != 0)) { _bits &= ~2097152L; - _Age = StringValues.Empty; + _headers._Age = StringValues.Empty; return true; } else @@ -8398,7 +8316,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 1024L) != 0)) { _bits &= ~1024L; - _Allow = StringValues.Empty; + _headers._Allow = StringValues.Empty; return true; } else @@ -8416,8 +8334,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 2048L) != 0)) { _bits &= ~2048L; - _ContentLength = StringValues.Empty; - _rawContentLength = null; + _headers._ContentLength = StringValues.Empty; + _headers._rawContentLength = null; return true; } else @@ -8435,7 +8353,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 4096L) != 0)) { _bits &= ~4096L; - _ContentType = StringValues.Empty; + _headers._ContentType = StringValues.Empty; return true; } else @@ -8453,7 +8371,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 8192L) != 0)) { _bits &= ~8192L; - _ContentEncoding = StringValues.Empty; + _headers._ContentEncoding = StringValues.Empty; return true; } else @@ -8467,7 +8385,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 16384L) != 0)) { _bits &= ~16384L; - _ContentLanguage = StringValues.Empty; + _headers._ContentLanguage = StringValues.Empty; return true; } else @@ -8481,7 +8399,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 32768L) != 0)) { _bits &= ~32768L; - _ContentLocation = StringValues.Empty; + _headers._ContentLocation = StringValues.Empty; return true; } else @@ -8495,7 +8413,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 536870912L) != 0)) { _bits &= ~536870912L; - _WWWAuthenticate = StringValues.Empty; + _headers._WWWAuthenticate = StringValues.Empty; return true; } else @@ -8513,7 +8431,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 65536L) != 0)) { _bits &= ~65536L; - _ContentMD5 = StringValues.Empty; + _headers._ContentMD5 = StringValues.Empty; return true; } else @@ -8527,7 +8445,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 33554432L) != 0)) { _bits &= ~33554432L; - _RetryAfter = StringValues.Empty; + _headers._RetryAfter = StringValues.Empty; return true; } else @@ -8545,7 +8463,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 8388608L) != 0)) { _bits &= ~8388608L; - _Location = StringValues.Empty; + _headers._Location = StringValues.Empty; return true; } else @@ -8563,7 +8481,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 1073741824L) != 0)) { _bits &= ~1073741824L; - _AccessControlAllowCredentials = StringValues.Empty; + _headers._AccessControlAllowCredentials = StringValues.Empty; return true; } else @@ -8581,7 +8499,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 2147483648L) != 0)) { _bits &= ~2147483648L; - _AccessControlAllowHeaders = StringValues.Empty; + _headers._AccessControlAllowHeaders = StringValues.Empty; return true; } else @@ -8595,7 +8513,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 4294967296L) != 0)) { _bits &= ~4294967296L; - _AccessControlAllowMethods = StringValues.Empty; + _headers._AccessControlAllowMethods = StringValues.Empty; return true; } else @@ -8613,7 +8531,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 8589934592L) != 0)) { _bits &= ~8589934592L; - _AccessControlAllowOrigin = StringValues.Empty; + _headers._AccessControlAllowOrigin = StringValues.Empty; return true; } else @@ -8631,7 +8549,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 17179869184L) != 0)) { _bits &= ~17179869184L; - _AccessControlExposeHeaders = StringValues.Empty; + _headers._AccessControlExposeHeaders = StringValues.Empty; return true; } else @@ -8649,7 +8567,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 34359738368L) != 0)) { _bits &= ~34359738368L; - _AccessControlMaxAge = StringValues.Empty; + _headers._AccessControlMaxAge = StringValues.Empty; return true; } else @@ -8664,8 +8582,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http } protected override void ClearFast() { - _bits = 0; + _headers = default(HeaderReferences); MaybeUnknown?.Clear(); } @@ -8683,7 +8601,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Cache-Control", _CacheControl); + array[arrayIndex] = new KeyValuePair("Cache-Control", _headers._CacheControl); ++arrayIndex; } @@ -8694,7 +8612,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Connection", _Connection); + array[arrayIndex] = new KeyValuePair("Connection", _headers._Connection); ++arrayIndex; } @@ -8705,7 +8623,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Date", _Date); + array[arrayIndex] = new KeyValuePair("Date", _headers._Date); ++arrayIndex; } @@ -8716,7 +8634,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Keep-Alive", _KeepAlive); + array[arrayIndex] = new KeyValuePair("Keep-Alive", _headers._KeepAlive); ++arrayIndex; } @@ -8727,7 +8645,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Pragma", _Pragma); + array[arrayIndex] = new KeyValuePair("Pragma", _headers._Pragma); ++arrayIndex; } @@ -8738,7 +8656,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Trailer", _Trailer); + array[arrayIndex] = new KeyValuePair("Trailer", _headers._Trailer); ++arrayIndex; } @@ -8749,7 +8667,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Transfer-Encoding", _TransferEncoding); + array[arrayIndex] = new KeyValuePair("Transfer-Encoding", _headers._TransferEncoding); ++arrayIndex; } @@ -8760,7 +8678,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Upgrade", _Upgrade); + array[arrayIndex] = new KeyValuePair("Upgrade", _headers._Upgrade); ++arrayIndex; } @@ -8771,7 +8689,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Via", _Via); + array[arrayIndex] = new KeyValuePair("Via", _headers._Via); ++arrayIndex; } @@ -8782,7 +8700,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Warning", _Warning); + array[arrayIndex] = new KeyValuePair("Warning", _headers._Warning); ++arrayIndex; } @@ -8793,7 +8711,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Allow", _Allow); + array[arrayIndex] = new KeyValuePair("Allow", _headers._Allow); ++arrayIndex; } @@ -8804,7 +8722,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Content-Length", _ContentLength); + array[arrayIndex] = new KeyValuePair("Content-Length", _headers._ContentLength); ++arrayIndex; } @@ -8815,7 +8733,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Content-Type", _ContentType); + array[arrayIndex] = new KeyValuePair("Content-Type", _headers._ContentType); ++arrayIndex; } @@ -8826,7 +8744,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Content-Encoding", _ContentEncoding); + array[arrayIndex] = new KeyValuePair("Content-Encoding", _headers._ContentEncoding); ++arrayIndex; } @@ -8837,7 +8755,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Content-Language", _ContentLanguage); + array[arrayIndex] = new KeyValuePair("Content-Language", _headers._ContentLanguage); ++arrayIndex; } @@ -8848,7 +8766,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Content-Location", _ContentLocation); + array[arrayIndex] = new KeyValuePair("Content-Location", _headers._ContentLocation); ++arrayIndex; } @@ -8859,7 +8777,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Content-MD5", _ContentMD5); + array[arrayIndex] = new KeyValuePair("Content-MD5", _headers._ContentMD5); ++arrayIndex; } @@ -8870,7 +8788,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Content-Range", _ContentRange); + array[arrayIndex] = new KeyValuePair("Content-Range", _headers._ContentRange); ++arrayIndex; } @@ -8881,7 +8799,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Expires", _Expires); + array[arrayIndex] = new KeyValuePair("Expires", _headers._Expires); ++arrayIndex; } @@ -8892,7 +8810,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Last-Modified", _LastModified); + array[arrayIndex] = new KeyValuePair("Last-Modified", _headers._LastModified); ++arrayIndex; } @@ -8903,7 +8821,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Accept-Ranges", _AcceptRanges); + array[arrayIndex] = new KeyValuePair("Accept-Ranges", _headers._AcceptRanges); ++arrayIndex; } @@ -8914,7 +8832,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Age", _Age); + array[arrayIndex] = new KeyValuePair("Age", _headers._Age); ++arrayIndex; } @@ -8925,7 +8843,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("ETag", _ETag); + array[arrayIndex] = new KeyValuePair("ETag", _headers._ETag); ++arrayIndex; } @@ -8936,7 +8854,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Location", _Location); + array[arrayIndex] = new KeyValuePair("Location", _headers._Location); ++arrayIndex; } @@ -8947,7 +8865,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Proxy-Autheticate", _ProxyAutheticate); + array[arrayIndex] = new KeyValuePair("Proxy-Autheticate", _headers._ProxyAutheticate); ++arrayIndex; } @@ -8958,7 +8876,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Retry-After", _RetryAfter); + array[arrayIndex] = new KeyValuePair("Retry-After", _headers._RetryAfter); ++arrayIndex; } @@ -8969,7 +8887,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Server", _Server); + array[arrayIndex] = new KeyValuePair("Server", _headers._Server); ++arrayIndex; } @@ -8980,7 +8898,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Set-Cookie", _SetCookie); + array[arrayIndex] = new KeyValuePair("Set-Cookie", _headers._SetCookie); ++arrayIndex; } @@ -8991,7 +8909,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Vary", _Vary); + array[arrayIndex] = new KeyValuePair("Vary", _headers._Vary); ++arrayIndex; } @@ -9002,7 +8920,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("WWW-Authenticate", _WWWAuthenticate); + array[arrayIndex] = new KeyValuePair("WWW-Authenticate", _headers._WWWAuthenticate); ++arrayIndex; } @@ -9013,7 +8931,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Access-Control-Allow-Credentials", _AccessControlAllowCredentials); + array[arrayIndex] = new KeyValuePair("Access-Control-Allow-Credentials", _headers._AccessControlAllowCredentials); ++arrayIndex; } @@ -9024,7 +8942,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Access-Control-Allow-Headers", _AccessControlAllowHeaders); + array[arrayIndex] = new KeyValuePair("Access-Control-Allow-Headers", _headers._AccessControlAllowHeaders); ++arrayIndex; } @@ -9035,7 +8953,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Access-Control-Allow-Methods", _AccessControlAllowMethods); + array[arrayIndex] = new KeyValuePair("Access-Control-Allow-Methods", _headers._AccessControlAllowMethods); ++arrayIndex; } @@ -9046,7 +8964,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Access-Control-Allow-Origin", _AccessControlAllowOrigin); + array[arrayIndex] = new KeyValuePair("Access-Control-Allow-Origin", _headers._AccessControlAllowOrigin); ++arrayIndex; } @@ -9057,7 +8975,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Access-Control-Expose-Headers", _AccessControlExposeHeaders); + array[arrayIndex] = new KeyValuePair("Access-Control-Expose-Headers", _headers._AccessControlExposeHeaders); ++arrayIndex; } @@ -9068,7 +8986,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); } - array[arrayIndex] = new KeyValuePair("Access-Control-Max-Age", _AccessControlMaxAge); + array[arrayIndex] = new KeyValuePair("Access-Control-Max-Age", _headers._AccessControlMaxAge); ++arrayIndex; } @@ -9080,7 +8998,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 1L) != 0)) { - foreach (var value in _CacheControl) + foreach (var value in _headers._CacheControl) { if (value != null) { @@ -9092,12 +9010,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 2L) != 0)) { - if (_rawConnection != null) + if (_headers._rawConnection != null) { - output.CopyFrom(_rawConnection, 0, _rawConnection.Length); + output.CopyFrom(_headers._rawConnection, 0, _headers._rawConnection.Length); } else - foreach (var value in _Connection) + foreach (var value in _headers._Connection) { if (value != null) { @@ -9109,12 +9027,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 4L) != 0)) { - if (_rawDate != null) + if (_headers._rawDate != null) { - output.CopyFrom(_rawDate, 0, _rawDate.Length); + output.CopyFrom(_headers._rawDate, 0, _headers._rawDate.Length); } else - foreach (var value in _Date) + foreach (var value in _headers._Date) { if (value != null) { @@ -9126,7 +9044,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 8L) != 0)) { - foreach (var value in _KeepAlive) + foreach (var value in _headers._KeepAlive) { if (value != null) { @@ -9138,7 +9056,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 16L) != 0)) { - foreach (var value in _Pragma) + foreach (var value in _headers._Pragma) { if (value != null) { @@ -9150,7 +9068,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 32L) != 0)) { - foreach (var value in _Trailer) + foreach (var value in _headers._Trailer) { if (value != null) { @@ -9162,12 +9080,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 64L) != 0)) { - if (_rawTransferEncoding != null) + if (_headers._rawTransferEncoding != null) { - output.CopyFrom(_rawTransferEncoding, 0, _rawTransferEncoding.Length); + output.CopyFrom(_headers._rawTransferEncoding, 0, _headers._rawTransferEncoding.Length); } else - foreach (var value in _TransferEncoding) + foreach (var value in _headers._TransferEncoding) { if (value != null) { @@ -9179,7 +9097,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 128L) != 0)) { - foreach (var value in _Upgrade) + foreach (var value in _headers._Upgrade) { if (value != null) { @@ -9191,7 +9109,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 256L) != 0)) { - foreach (var value in _Via) + foreach (var value in _headers._Via) { if (value != null) { @@ -9203,7 +9121,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 512L) != 0)) { - foreach (var value in _Warning) + foreach (var value in _headers._Warning) { if (value != null) { @@ -9215,7 +9133,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 1024L) != 0)) { - foreach (var value in _Allow) + foreach (var value in _headers._Allow) { if (value != null) { @@ -9227,12 +9145,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 2048L) != 0)) { - if (_rawContentLength != null) + if (_headers._rawContentLength != null) { - output.CopyFrom(_rawContentLength, 0, _rawContentLength.Length); + output.CopyFrom(_headers._rawContentLength, 0, _headers._rawContentLength.Length); } else - foreach (var value in _ContentLength) + foreach (var value in _headers._ContentLength) { if (value != null) { @@ -9244,7 +9162,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 4096L) != 0)) { - foreach (var value in _ContentType) + foreach (var value in _headers._ContentType) { if (value != null) { @@ -9256,7 +9174,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 8192L) != 0)) { - foreach (var value in _ContentEncoding) + foreach (var value in _headers._ContentEncoding) { if (value != null) { @@ -9268,7 +9186,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 16384L) != 0)) { - foreach (var value in _ContentLanguage) + foreach (var value in _headers._ContentLanguage) { if (value != null) { @@ -9280,7 +9198,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 32768L) != 0)) { - foreach (var value in _ContentLocation) + foreach (var value in _headers._ContentLocation) { if (value != null) { @@ -9292,7 +9210,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 65536L) != 0)) { - foreach (var value in _ContentMD5) + foreach (var value in _headers._ContentMD5) { if (value != null) { @@ -9304,7 +9222,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 131072L) != 0)) { - foreach (var value in _ContentRange) + foreach (var value in _headers._ContentRange) { if (value != null) { @@ -9316,7 +9234,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 262144L) != 0)) { - foreach (var value in _Expires) + foreach (var value in _headers._Expires) { if (value != null) { @@ -9328,7 +9246,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 524288L) != 0)) { - foreach (var value in _LastModified) + foreach (var value in _headers._LastModified) { if (value != null) { @@ -9340,7 +9258,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 1048576L) != 0)) { - foreach (var value in _AcceptRanges) + foreach (var value in _headers._AcceptRanges) { if (value != null) { @@ -9352,7 +9270,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 2097152L) != 0)) { - foreach (var value in _Age) + foreach (var value in _headers._Age) { if (value != null) { @@ -9364,7 +9282,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 4194304L) != 0)) { - foreach (var value in _ETag) + foreach (var value in _headers._ETag) { if (value != null) { @@ -9376,7 +9294,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 8388608L) != 0)) { - foreach (var value in _Location) + foreach (var value in _headers._Location) { if (value != null) { @@ -9388,7 +9306,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 16777216L) != 0)) { - foreach (var value in _ProxyAutheticate) + foreach (var value in _headers._ProxyAutheticate) { if (value != null) { @@ -9400,7 +9318,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 33554432L) != 0)) { - foreach (var value in _RetryAfter) + foreach (var value in _headers._RetryAfter) { if (value != null) { @@ -9412,12 +9330,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 67108864L) != 0)) { - if (_rawServer != null) + if (_headers._rawServer != null) { - output.CopyFrom(_rawServer, 0, _rawServer.Length); + output.CopyFrom(_headers._rawServer, 0, _headers._rawServer.Length); } else - foreach (var value in _Server) + foreach (var value in _headers._Server) { if (value != null) { @@ -9429,7 +9347,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 134217728L) != 0)) { - foreach (var value in _SetCookie) + foreach (var value in _headers._SetCookie) { if (value != null) { @@ -9441,7 +9359,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 268435456L) != 0)) { - foreach (var value in _Vary) + foreach (var value in _headers._Vary) { if (value != null) { @@ -9453,7 +9371,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 536870912L) != 0)) { - foreach (var value in _WWWAuthenticate) + foreach (var value in _headers._WWWAuthenticate) { if (value != null) { @@ -9465,7 +9383,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 1073741824L) != 0)) { - foreach (var value in _AccessControlAllowCredentials) + foreach (var value in _headers._AccessControlAllowCredentials) { if (value != null) { @@ -9477,7 +9395,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 2147483648L) != 0)) { - foreach (var value in _AccessControlAllowHeaders) + foreach (var value in _headers._AccessControlAllowHeaders) { if (value != null) { @@ -9489,7 +9407,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 4294967296L) != 0)) { - foreach (var value in _AccessControlAllowMethods) + foreach (var value in _headers._AccessControlAllowMethods) { if (value != null) { @@ -9501,7 +9419,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 8589934592L) != 0)) { - foreach (var value in _AccessControlAllowOrigin) + foreach (var value in _headers._AccessControlAllowOrigin) { if (value != null) { @@ -9513,7 +9431,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 17179869184L) != 0)) { - foreach (var value in _AccessControlExposeHeaders) + foreach (var value in _headers._AccessControlExposeHeaders) { if (value != null) { @@ -9525,7 +9443,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (((_bits & 34359738368L) != 0)) { - foreach (var value in _AccessControlMaxAge) + foreach (var value in _headers._AccessControlMaxAge) { if (value != null) { @@ -9537,6 +9455,52 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http } + private struct HeaderReferences + { + public StringValues _CacheControl; + public StringValues _Connection; + public StringValues _Date; + public StringValues _KeepAlive; + public StringValues _Pragma; + public StringValues _Trailer; + public StringValues _TransferEncoding; + public StringValues _Upgrade; + public StringValues _Via; + public StringValues _Warning; + public StringValues _Allow; + public StringValues _ContentLength; + public StringValues _ContentType; + public StringValues _ContentEncoding; + public StringValues _ContentLanguage; + public StringValues _ContentLocation; + public StringValues _ContentMD5; + public StringValues _ContentRange; + public StringValues _Expires; + public StringValues _LastModified; + public StringValues _AcceptRanges; + public StringValues _Age; + public StringValues _ETag; + public StringValues _Location; + public StringValues _ProxyAutheticate; + public StringValues _RetryAfter; + public StringValues _Server; + public StringValues _SetCookie; + public StringValues _Vary; + public StringValues _WWWAuthenticate; + public StringValues _AccessControlAllowCredentials; + public StringValues _AccessControlAllowHeaders; + public StringValues _AccessControlAllowMethods; + public StringValues _AccessControlAllowOrigin; + public StringValues _AccessControlExposeHeaders; + public StringValues _AccessControlMaxAge; + + public byte[] _rawConnection; + public byte[] _rawDate; + public byte[] _rawTransferEncoding; + public byte[] _rawContentLength; + public byte[] _rawServer; + } + public partial struct Enumerator { public bool MoveNext() @@ -9659,7 +9623,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state0: if (((_bits & 1L) != 0)) { - _current = new KeyValuePair("Cache-Control", _collection._CacheControl); + _current = new KeyValuePair("Cache-Control", _collection._headers._CacheControl); _state = 1; return true; } @@ -9667,7 +9631,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state1: if (((_bits & 2L) != 0)) { - _current = new KeyValuePair("Connection", _collection._Connection); + _current = new KeyValuePair("Connection", _collection._headers._Connection); _state = 2; return true; } @@ -9675,7 +9639,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state2: if (((_bits & 4L) != 0)) { - _current = new KeyValuePair("Date", _collection._Date); + _current = new KeyValuePair("Date", _collection._headers._Date); _state = 3; return true; } @@ -9683,7 +9647,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state3: if (((_bits & 8L) != 0)) { - _current = new KeyValuePair("Keep-Alive", _collection._KeepAlive); + _current = new KeyValuePair("Keep-Alive", _collection._headers._KeepAlive); _state = 4; return true; } @@ -9691,7 +9655,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state4: if (((_bits & 16L) != 0)) { - _current = new KeyValuePair("Pragma", _collection._Pragma); + _current = new KeyValuePair("Pragma", _collection._headers._Pragma); _state = 5; return true; } @@ -9699,7 +9663,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state5: if (((_bits & 32L) != 0)) { - _current = new KeyValuePair("Trailer", _collection._Trailer); + _current = new KeyValuePair("Trailer", _collection._headers._Trailer); _state = 6; return true; } @@ -9707,7 +9671,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state6: if (((_bits & 64L) != 0)) { - _current = new KeyValuePair("Transfer-Encoding", _collection._TransferEncoding); + _current = new KeyValuePair("Transfer-Encoding", _collection._headers._TransferEncoding); _state = 7; return true; } @@ -9715,7 +9679,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state7: if (((_bits & 128L) != 0)) { - _current = new KeyValuePair("Upgrade", _collection._Upgrade); + _current = new KeyValuePair("Upgrade", _collection._headers._Upgrade); _state = 8; return true; } @@ -9723,7 +9687,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state8: if (((_bits & 256L) != 0)) { - _current = new KeyValuePair("Via", _collection._Via); + _current = new KeyValuePair("Via", _collection._headers._Via); _state = 9; return true; } @@ -9731,7 +9695,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state9: if (((_bits & 512L) != 0)) { - _current = new KeyValuePair("Warning", _collection._Warning); + _current = new KeyValuePair("Warning", _collection._headers._Warning); _state = 10; return true; } @@ -9739,7 +9703,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state10: if (((_bits & 1024L) != 0)) { - _current = new KeyValuePair("Allow", _collection._Allow); + _current = new KeyValuePair("Allow", _collection._headers._Allow); _state = 11; return true; } @@ -9747,7 +9711,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state11: if (((_bits & 2048L) != 0)) { - _current = new KeyValuePair("Content-Length", _collection._ContentLength); + _current = new KeyValuePair("Content-Length", _collection._headers._ContentLength); _state = 12; return true; } @@ -9755,7 +9719,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state12: if (((_bits & 4096L) != 0)) { - _current = new KeyValuePair("Content-Type", _collection._ContentType); + _current = new KeyValuePair("Content-Type", _collection._headers._ContentType); _state = 13; return true; } @@ -9763,7 +9727,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state13: if (((_bits & 8192L) != 0)) { - _current = new KeyValuePair("Content-Encoding", _collection._ContentEncoding); + _current = new KeyValuePair("Content-Encoding", _collection._headers._ContentEncoding); _state = 14; return true; } @@ -9771,7 +9735,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state14: if (((_bits & 16384L) != 0)) { - _current = new KeyValuePair("Content-Language", _collection._ContentLanguage); + _current = new KeyValuePair("Content-Language", _collection._headers._ContentLanguage); _state = 15; return true; } @@ -9779,7 +9743,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state15: if (((_bits & 32768L) != 0)) { - _current = new KeyValuePair("Content-Location", _collection._ContentLocation); + _current = new KeyValuePair("Content-Location", _collection._headers._ContentLocation); _state = 16; return true; } @@ -9787,7 +9751,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state16: if (((_bits & 65536L) != 0)) { - _current = new KeyValuePair("Content-MD5", _collection._ContentMD5); + _current = new KeyValuePair("Content-MD5", _collection._headers._ContentMD5); _state = 17; return true; } @@ -9795,7 +9759,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state17: if (((_bits & 131072L) != 0)) { - _current = new KeyValuePair("Content-Range", _collection._ContentRange); + _current = new KeyValuePair("Content-Range", _collection._headers._ContentRange); _state = 18; return true; } @@ -9803,7 +9767,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state18: if (((_bits & 262144L) != 0)) { - _current = new KeyValuePair("Expires", _collection._Expires); + _current = new KeyValuePair("Expires", _collection._headers._Expires); _state = 19; return true; } @@ -9811,7 +9775,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state19: if (((_bits & 524288L) != 0)) { - _current = new KeyValuePair("Last-Modified", _collection._LastModified); + _current = new KeyValuePair("Last-Modified", _collection._headers._LastModified); _state = 20; return true; } @@ -9819,7 +9783,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state20: if (((_bits & 1048576L) != 0)) { - _current = new KeyValuePair("Accept-Ranges", _collection._AcceptRanges); + _current = new KeyValuePair("Accept-Ranges", _collection._headers._AcceptRanges); _state = 21; return true; } @@ -9827,7 +9791,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state21: if (((_bits & 2097152L) != 0)) { - _current = new KeyValuePair("Age", _collection._Age); + _current = new KeyValuePair("Age", _collection._headers._Age); _state = 22; return true; } @@ -9835,7 +9799,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state22: if (((_bits & 4194304L) != 0)) { - _current = new KeyValuePair("ETag", _collection._ETag); + _current = new KeyValuePair("ETag", _collection._headers._ETag); _state = 23; return true; } @@ -9843,7 +9807,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state23: if (((_bits & 8388608L) != 0)) { - _current = new KeyValuePair("Location", _collection._Location); + _current = new KeyValuePair("Location", _collection._headers._Location); _state = 24; return true; } @@ -9851,7 +9815,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state24: if (((_bits & 16777216L) != 0)) { - _current = new KeyValuePair("Proxy-Autheticate", _collection._ProxyAutheticate); + _current = new KeyValuePair("Proxy-Autheticate", _collection._headers._ProxyAutheticate); _state = 25; return true; } @@ -9859,7 +9823,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state25: if (((_bits & 33554432L) != 0)) { - _current = new KeyValuePair("Retry-After", _collection._RetryAfter); + _current = new KeyValuePair("Retry-After", _collection._headers._RetryAfter); _state = 26; return true; } @@ -9867,7 +9831,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state26: if (((_bits & 67108864L) != 0)) { - _current = new KeyValuePair("Server", _collection._Server); + _current = new KeyValuePair("Server", _collection._headers._Server); _state = 27; return true; } @@ -9875,7 +9839,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state27: if (((_bits & 134217728L) != 0)) { - _current = new KeyValuePair("Set-Cookie", _collection._SetCookie); + _current = new KeyValuePair("Set-Cookie", _collection._headers._SetCookie); _state = 28; return true; } @@ -9883,7 +9847,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state28: if (((_bits & 268435456L) != 0)) { - _current = new KeyValuePair("Vary", _collection._Vary); + _current = new KeyValuePair("Vary", _collection._headers._Vary); _state = 29; return true; } @@ -9891,7 +9855,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state29: if (((_bits & 536870912L) != 0)) { - _current = new KeyValuePair("WWW-Authenticate", _collection._WWWAuthenticate); + _current = new KeyValuePair("WWW-Authenticate", _collection._headers._WWWAuthenticate); _state = 30; return true; } @@ -9899,7 +9863,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state30: if (((_bits & 1073741824L) != 0)) { - _current = new KeyValuePair("Access-Control-Allow-Credentials", _collection._AccessControlAllowCredentials); + _current = new KeyValuePair("Access-Control-Allow-Credentials", _collection._headers._AccessControlAllowCredentials); _state = 31; return true; } @@ -9907,7 +9871,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state31: if (((_bits & 2147483648L) != 0)) { - _current = new KeyValuePair("Access-Control-Allow-Headers", _collection._AccessControlAllowHeaders); + _current = new KeyValuePair("Access-Control-Allow-Headers", _collection._headers._AccessControlAllowHeaders); _state = 32; return true; } @@ -9915,7 +9879,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state32: if (((_bits & 4294967296L) != 0)) { - _current = new KeyValuePair("Access-Control-Allow-Methods", _collection._AccessControlAllowMethods); + _current = new KeyValuePair("Access-Control-Allow-Methods", _collection._headers._AccessControlAllowMethods); _state = 33; return true; } @@ -9923,7 +9887,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state33: if (((_bits & 8589934592L) != 0)) { - _current = new KeyValuePair("Access-Control-Allow-Origin", _collection._AccessControlAllowOrigin); + _current = new KeyValuePair("Access-Control-Allow-Origin", _collection._headers._AccessControlAllowOrigin); _state = 34; return true; } @@ -9931,7 +9895,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state34: if (((_bits & 17179869184L) != 0)) { - _current = new KeyValuePair("Access-Control-Expose-Headers", _collection._AccessControlExposeHeaders); + _current = new KeyValuePair("Access-Control-Expose-Headers", _collection._headers._AccessControlExposeHeaders); _state = 35; return true; } @@ -9939,7 +9903,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state35: if (((_bits & 34359738368L) != 0)) { - _current = new KeyValuePair("Access-Control-Max-Age", _collection._AccessControlMaxAge); + _current = new KeyValuePair("Access-Control-Max-Age", _collection._headers._AccessControlMaxAge); _state = 36; return true; } diff --git a/tools/Microsoft.AspNetCore.Server.Kestrel.GeneratedCode/KnownHeaders.cs b/tools/Microsoft.AspNetCore.Server.Kestrel.GeneratedCode/KnownHeaders.cs index 76e7610b82..1593da3ac4 100644 --- a/tools/Microsoft.AspNetCore.Server.Kestrel.GeneratedCode/KnownHeaders.cs +++ b/tools/Microsoft.AspNetCore.Server.Kestrel.GeneratedCode/KnownHeaders.cs @@ -216,10 +216,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http : "")} private long _bits = 0; - {Each(loop.Headers, header => @" - private StringValues _" + header.Identifier + ";")} - {Each(loop.Headers.Where(header => header.EnhancedSetter), header => @" - private byte[] _raw" + header.Identifier + ";")} + private HeaderReferences _headers; {Each(loop.Headers, header => $@" public StringValues Header{header.Identifier} {{ @@ -227,23 +224,23 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http {{ if ({header.TestBit()}) {{ - return _{header.Identifier}; + return _headers._{header.Identifier}; }} return StringValues.Empty; }} set {{ {header.SetBit()}; - _{header.Identifier} = value; {(header.EnhancedSetter == false ? "" : $@" - _raw{header.Identifier} = null;")} + _headers._{header.Identifier} = value; {(header.EnhancedSetter == false ? "" : $@" + _headers._raw{header.Identifier} = null;")} }} }}")} {Each(loop.Headers.Where(header => header.EnhancedSetter), header => $@" public void SetRaw{header.Identifier}(StringValues value, byte[] raw) {{ {header.SetBit()}; - _{header.Identifier} = value; - _raw{header.Identifier} = raw; + _headers._{header.Identifier} = value; + _headers._raw{header.Identifier} = raw; }}")} protected override int GetCountFast() {{ @@ -259,7 +256,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http {{ if ({header.TestBit()}) {{ - return _{header.Identifier}; + return _headers._{header.Identifier}; }} else {{ @@ -285,7 +282,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http {{ if ({header.TestBit()}) {{ - value = _{header.Identifier}; + value = _headers._{header.Identifier}; return true; }} else @@ -309,8 +306,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if (""{header.Name}"".Equals(key, StringComparison.OrdinalIgnoreCase)) {{ {header.SetBit()}; - _{header.Identifier} = value;{(header.EnhancedSetter == false ? "" : $@" - _raw{header.Identifier} = null;")} + _headers._{header.Identifier} = value;{(header.EnhancedSetter == false ? "" : $@" + _headers._raw{header.Identifier} = null;")} return; }} ")}}} @@ -331,8 +328,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowDuplicateKeyException(); }} {header.SetBit()}; - _{header.Identifier} = value;{(header.EnhancedSetter == false ? "" : $@" - _raw{header.Identifier} = null;")} + _headers._{header.Identifier} = value;{(header.EnhancedSetter == false ? "" : $@" + _headers._raw{header.Identifier} = null;")} return; }} ")}}} @@ -351,8 +348,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http if ({header.TestBit()}) {{ {header.ClearBit()}; - _{header.Identifier} = StringValues.Empty;{(header.EnhancedSetter == false ? "" : $@" - _raw{header.Identifier} = null;")} + _headers._{header.Identifier} = StringValues.Empty;{(header.EnhancedSetter == false ? "" : $@" + _headers._raw{header.Identifier} = null;")} return true; }} else @@ -366,10 +363,9 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http return MaybeUnknown?.Remove(key) ?? false; }} protected override void ClearFast() - {{{(loop.ClassName != "FrameRequestHeaders" ? "" : Each(loop.Headers, header => $@" - if ({header.TestBit()}) _{header.Identifier} = default(StringValues);"))} - + {{ _bits = 0; + _headers = default(HeaderReferences); MaybeUnknown?.Clear(); }} @@ -387,7 +383,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http ThrowArgumentException(); }} - array[arrayIndex] = new KeyValuePair(""{header.Name}"", _{header.Identifier}); + array[arrayIndex] = new KeyValuePair(""{header.Name}"", _headers._{header.Identifier}); ++arrayIndex; }} ")} @@ -399,12 +395,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http {Each(loop.Headers, header => $@" if ({header.TestBit()}) {{ {(header.EnhancedSetter == false ? "" : $@" - if (_raw{header.Identifier} != null) + if (_headers._raw{header.Identifier} != null) {{ - output.CopyFrom(_raw{header.Identifier}, 0, _raw{header.Identifier}.Length); + output.CopyFrom(_headers._raw{header.Identifier}, 0, _headers._raw{header.Identifier}.Length); }} else ")} - foreach (var value in _{header.Identifier}) + foreach (var value in _headers._{header.Identifier}) {{ if (value != null) {{ @@ -432,13 +428,13 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http {{ if ({header.TestBit()}) {{ - _{header.Identifier} = AppendValue(_{header.Identifier}, value); + _headers._{header.Identifier} = AppendValue(_headers._{header.Identifier}, value); }} else {{ {header.SetBit()}; - _{header.Identifier} = new StringValues(value);{(header.EnhancedSetter == false ? "" : $@" - _raw{header.Identifier} = null;")} + _headers._{header.Identifier} = new StringValues(value);{(header.EnhancedSetter == false ? "" : $@" + _headers._raw{header.Identifier} = null;")} }} return; }} @@ -451,6 +447,13 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http Unknown.TryGetValue(key, out existing); Unknown[key] = AppendValue(existing, value); }}" : "")} + private struct HeaderReferences + {{{Each(loop.Headers, header => @" + public StringValues _" + header.Identifier + ";")} + {Each(loop.Headers.Where(header => header.EnhancedSetter), header => @" + public byte[] _raw" + header.Identifier + ";")} + }} + public partial struct Enumerator {{ public bool MoveNext() @@ -468,7 +471,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http state{header.Index}: if ({header.TestBit()}) {{ - _current = new KeyValuePair(""{header.Name}"", _collection._{header.Identifier}); + _current = new KeyValuePair(""{header.Name}"", _collection._headers._{header.Identifier}); _state = {header.Index + 1}; return true; }}