256 references to HttpSysRequestHeader
Microsoft.AspNetCore.Shared.Tests (256)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (4)
433
internal bool HasKnownHeader(
HttpSysRequestHeader
header)
450
private bool HasKnowHeaderHelper(
HttpSysRequestHeader
header, long fixup, HTTP_REQUEST_V1* request)
468
internal string? GetKnownHeader(
HttpSysRequestHeader
header)
485
private string? GetKnowHeaderHelper(
HttpSysRequestHeader
header, long fixup, HTTP_REQUEST_V1* request)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (3)
61
private string? GetKnownHeader(
HttpSysRequestHeader
header)
283
var
header = HeaderKeys[i];
297
var
header = HeaderKeys[i];
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (249)
68
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.Accept);
92
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.AcceptCharset);
116
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.AcceptEncoding);
140
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.AcceptLanguage);
164
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.Allow);
188
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.Authorization);
212
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.CacheControl);
236
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.Connection);
260
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.ContentEncoding);
284
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.ContentLanguage);
308
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.ContentLength);
332
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.ContentLocation);
356
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.ContentMd5);
380
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.ContentRange);
404
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.ContentType);
428
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.Cookie);
452
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.Date);
476
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.Expect);
500
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.Expires);
524
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.From);
548
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.Host);
572
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.IfMatch);
596
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.IfModifiedSince);
620
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.IfNoneMatch);
644
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.IfRange);
668
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.IfUnmodifiedSince);
692
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.KeepAlive);
716
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.LastModified);
740
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.MaxForwards);
764
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.Pragma);
788
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.ProxyAuthorization);
812
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.Range);
836
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.Referer);
860
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.Te);
884
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.Trailer);
908
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.TransferEncoding);
932
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.Translate);
956
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.Upgrade);
980
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.UserAgent);
1004
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.Via);
1028
string nativeValue = GetKnownHeader(
HttpSysRequestHeader
.Warning);
1754
if (HasKnownHeader(
HttpSysRequestHeader
.Te))
1766
if (HasKnownHeader(
HttpSysRequestHeader
.Via))
1778
if (HasKnownHeader(
HttpSysRequestHeader
.Date))
1788
if (HasKnownHeader(
HttpSysRequestHeader
.From))
1798
if (HasKnownHeader(
HttpSysRequestHeader
.Host))
1810
if (HasKnownHeader(
HttpSysRequestHeader
.Allow))
1820
if (HasKnownHeader(
HttpSysRequestHeader
.Range))
1832
if (HasKnownHeader(
HttpSysRequestHeader
.Accept))
1842
if (HasKnownHeader(
HttpSysRequestHeader
.Cookie))
1852
if (HasKnownHeader(
HttpSysRequestHeader
.Expect))
1862
if (HasKnownHeader(
HttpSysRequestHeader
.Pragma))
1874
if (HasKnownHeader(
HttpSysRequestHeader
.Expires))
1884
if (HasKnownHeader(
HttpSysRequestHeader
.Referer))
1894
if (HasKnownHeader(
HttpSysRequestHeader
.Trailer))
1904
if (HasKnownHeader(
HttpSysRequestHeader
.Upgrade))
1914
if (HasKnownHeader(
HttpSysRequestHeader
.Warning))
1926
if (HasKnownHeader(
HttpSysRequestHeader
.IfMatch))
1936
if (HasKnownHeader(
HttpSysRequestHeader
.IfRange))
1948
if (HasKnownHeader(
HttpSysRequestHeader
.Translate))
1960
if (HasKnownHeader(
HttpSysRequestHeader
.Connection))
1970
if (HasKnownHeader(
HttpSysRequestHeader
.KeepAlive))
1980
if (HasKnownHeader(
HttpSysRequestHeader
.UserAgent))
1992
if (HasKnownHeader(
HttpSysRequestHeader
.ContentMd5))
2004
if (HasKnownHeader(
HttpSysRequestHeader
.ContentType))
2014
if (HasKnownHeader(
HttpSysRequestHeader
.MaxForwards))
2026
if (HasKnownHeader(
HttpSysRequestHeader
.Authorization))
2036
if (HasKnownHeader(
HttpSysRequestHeader
.CacheControl))
2046
if (HasKnownHeader(
HttpSysRequestHeader
.ContentRange))
2056
if (HasKnownHeader(
HttpSysRequestHeader
.IfNoneMatch))
2066
if (HasKnownHeader(
HttpSysRequestHeader
.LastModified))
2078
if (HasKnownHeader(
HttpSysRequestHeader
.AcceptCharset))
2088
if (HasKnownHeader(
HttpSysRequestHeader
.ContentLength))
2100
if (HasKnownHeader(
HttpSysRequestHeader
.AcceptEncoding))
2110
if (HasKnownHeader(
HttpSysRequestHeader
.AcceptLanguage))
2122
if (HasKnownHeader(
HttpSysRequestHeader
.ContentEncoding))
2132
if (HasKnownHeader(
HttpSysRequestHeader
.ContentLanguage))
2142
if (HasKnownHeader(
HttpSysRequestHeader
.ContentLocation))
2154
if (HasKnownHeader(
HttpSysRequestHeader
.IfModifiedSince))
2164
if (HasKnownHeader(
HttpSysRequestHeader
.TransferEncoding))
2176
if (HasKnownHeader(
HttpSysRequestHeader
.IfUnmodifiedSince))
2186
if (HasKnownHeader(
HttpSysRequestHeader
.ProxyAuthorization))
2703
private static ReadOnlySpan<
HttpSysRequestHeader
> HeaderKeys =>
2705
HttpSysRequestHeader
.Accept,
2706
HttpSysRequestHeader
.AcceptCharset,
2707
HttpSysRequestHeader
.AcceptEncoding,
2708
HttpSysRequestHeader
.AcceptLanguage,
2709
HttpSysRequestHeader
.Allow,
2710
HttpSysRequestHeader
.Authorization,
2711
HttpSysRequestHeader
.CacheControl,
2712
HttpSysRequestHeader
.Connection,
2713
HttpSysRequestHeader
.ContentEncoding,
2714
HttpSysRequestHeader
.ContentLanguage,
2715
HttpSysRequestHeader
.ContentLength,
2716
HttpSysRequestHeader
.ContentLocation,
2717
HttpSysRequestHeader
.ContentMd5,
2718
HttpSysRequestHeader
.ContentRange,
2719
HttpSysRequestHeader
.ContentType,
2720
HttpSysRequestHeader
.Cookie,
2721
HttpSysRequestHeader
.Date,
2722
HttpSysRequestHeader
.Expect,
2723
HttpSysRequestHeader
.Expires,
2724
HttpSysRequestHeader
.From,
2725
HttpSysRequestHeader
.Host,
2726
HttpSysRequestHeader
.IfMatch,
2727
HttpSysRequestHeader
.IfModifiedSince,
2728
HttpSysRequestHeader
.IfNoneMatch,
2729
HttpSysRequestHeader
.IfRange,
2730
HttpSysRequestHeader
.IfUnmodifiedSince,
2731
HttpSysRequestHeader
.KeepAlive,
2732
HttpSysRequestHeader
.LastModified,
2733
HttpSysRequestHeader
.MaxForwards,
2734
HttpSysRequestHeader
.Pragma,
2735
HttpSysRequestHeader
.ProxyAuthorization,
2736
HttpSysRequestHeader
.Range,
2737
HttpSysRequestHeader
.Referer,
2738
HttpSysRequestHeader
.Te,
2739
HttpSysRequestHeader
.Trailer,
2740
HttpSysRequestHeader
.TransferEncoding,
2741
HttpSysRequestHeader
.Translate,
2742
HttpSysRequestHeader
.Upgrade,
2743
HttpSysRequestHeader
.UserAgent,
2744
HttpSysRequestHeader
.Via,
2745
HttpSysRequestHeader
.Warning,
2748
private string GetHeaderKeyName(
HttpSysRequestHeader
header) => header switch
2750
HttpSysRequestHeader
.Accept => HeaderNames.Accept,
2751
HttpSysRequestHeader
.AcceptCharset => HeaderNames.AcceptCharset,
2752
HttpSysRequestHeader
.AcceptEncoding => HeaderNames.AcceptEncoding,
2753
HttpSysRequestHeader
.AcceptLanguage => HeaderNames.AcceptLanguage,
2754
HttpSysRequestHeader
.Allow => HeaderNames.Allow,
2755
HttpSysRequestHeader
.Authorization => HeaderNames.Authorization,
2756
HttpSysRequestHeader
.CacheControl => HeaderNames.CacheControl,
2757
HttpSysRequestHeader
.Connection => HeaderNames.Connection,
2758
HttpSysRequestHeader
.ContentEncoding => HeaderNames.ContentEncoding,
2759
HttpSysRequestHeader
.ContentLanguage => HeaderNames.ContentLanguage,
2760
HttpSysRequestHeader
.ContentLength => HeaderNames.ContentLength,
2761
HttpSysRequestHeader
.ContentLocation => HeaderNames.ContentLocation,
2762
HttpSysRequestHeader
.ContentMd5 => HeaderNames.ContentMD5,
2763
HttpSysRequestHeader
.ContentRange => HeaderNames.ContentRange,
2764
HttpSysRequestHeader
.ContentType => HeaderNames.ContentType,
2765
HttpSysRequestHeader
.Cookie => HeaderNames.Cookie,
2766
HttpSysRequestHeader
.Date => HeaderNames.Date,
2767
HttpSysRequestHeader
.Expect => HeaderNames.Expect,
2768
HttpSysRequestHeader
.Expires => HeaderNames.Expires,
2769
HttpSysRequestHeader
.From => HeaderNames.From,
2770
HttpSysRequestHeader
.Host => HeaderNames.Host,
2771
HttpSysRequestHeader
.IfMatch => HeaderNames.IfMatch,
2772
HttpSysRequestHeader
.IfModifiedSince => HeaderNames.IfModifiedSince,
2773
HttpSysRequestHeader
.IfNoneMatch => HeaderNames.IfNoneMatch,
2774
HttpSysRequestHeader
.IfRange => HeaderNames.IfRange,
2775
HttpSysRequestHeader
.IfUnmodifiedSince => HeaderNames.IfUnmodifiedSince,
2776
HttpSysRequestHeader
.KeepAlive => HeaderNames.KeepAlive,
2777
HttpSysRequestHeader
.LastModified => HeaderNames.LastModified,
2778
HttpSysRequestHeader
.MaxForwards => HeaderNames.MaxForwards,
2779
HttpSysRequestHeader
.Pragma => HeaderNames.Pragma,
2780
HttpSysRequestHeader
.ProxyAuthorization => HeaderNames.ProxyAuthorization,
2781
HttpSysRequestHeader
.Range => HeaderNames.Range,
2782
HttpSysRequestHeader
.Referer => HeaderNames.Referer,
2783
HttpSysRequestHeader
.Te => HeaderNames.TE,
2784
HttpSysRequestHeader
.Trailer => HeaderNames.Trailer,
2785
HttpSysRequestHeader
.TransferEncoding => HeaderNames.TransferEncoding,
2786
HttpSysRequestHeader
.Translate => HeaderNames.Translate,
2787
HttpSysRequestHeader
.Upgrade => HeaderNames.Upgrade,
2788
HttpSysRequestHeader
.UserAgent => HeaderNames.UserAgent,
2789
HttpSysRequestHeader
.Via => HeaderNames.Via,
2790
HttpSysRequestHeader
.Warning => HeaderNames.Warning,
2794
private bool HasKnownHeader(
HttpSysRequestHeader
header) => header switch
2796
HttpSysRequestHeader
.Accept => (_flag0 & 0x1u) != 0 ? _Accept.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.Accept),
2797
HttpSysRequestHeader
.AcceptCharset => (_flag0 & 0x2u) != 0 ? _AcceptCharset.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.AcceptCharset),
2798
HttpSysRequestHeader
.AcceptEncoding => (_flag0 & 0x4u) != 0 ? _AcceptEncoding.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.AcceptEncoding),
2799
HttpSysRequestHeader
.AcceptLanguage => (_flag0 & 0x8u) != 0 ? _AcceptLanguage.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.AcceptLanguage),
2800
HttpSysRequestHeader
.Allow => (_flag0 & 0x10u) != 0 ? _Allow.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.Allow),
2801
HttpSysRequestHeader
.Authorization => (_flag0 & 0x20u) != 0 ? _Authorization.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.Authorization),
2802
HttpSysRequestHeader
.CacheControl => (_flag0 & 0x40u) != 0 ? _CacheControl.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.CacheControl),
2803
HttpSysRequestHeader
.Connection => (_flag0 & 0x80u) != 0 ? _Connection.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.Connection),
2804
HttpSysRequestHeader
.ContentEncoding => (_flag0 & 0x100u) != 0 ? _ContentEncoding.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.ContentEncoding),
2805
HttpSysRequestHeader
.ContentLanguage => (_flag0 & 0x200u) != 0 ? _ContentLanguage.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.ContentLanguage),
2806
HttpSysRequestHeader
.ContentLength => (_flag0 & 0x400u) != 0 ? _ContentLength.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.ContentLength),
2807
HttpSysRequestHeader
.ContentLocation => (_flag0 & 0x800u) != 0 ? _ContentLocation.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.ContentLocation),
2808
HttpSysRequestHeader
.ContentMd5 => (_flag0 & 0x1000u) != 0 ? _ContentMD5.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.ContentMd5),
2809
HttpSysRequestHeader
.ContentRange => (_flag0 & 0x2000u) != 0 ? _ContentRange.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.ContentRange),
2810
HttpSysRequestHeader
.ContentType => (_flag0 & 0x4000u) != 0 ? _ContentType.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.ContentType),
2811
HttpSysRequestHeader
.Cookie => (_flag0 & 0x8000u) != 0 ? _Cookie.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.Cookie),
2812
HttpSysRequestHeader
.Date => (_flag0 & 0x10000u) != 0 ? _Date.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.Date),
2813
HttpSysRequestHeader
.Expect => (_flag0 & 0x20000u) != 0 ? _Expect.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.Expect),
2814
HttpSysRequestHeader
.Expires => (_flag0 & 0x40000u) != 0 ? _Expires.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.Expires),
2815
HttpSysRequestHeader
.From => (_flag0 & 0x80000u) != 0 ? _From.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.From),
2816
HttpSysRequestHeader
.Host => (_flag0 & 0x100000u) != 0 ? _Host.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.Host),
2817
HttpSysRequestHeader
.IfMatch => (_flag0 & 0x200000u) != 0 ? _IfMatch.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.IfMatch),
2818
HttpSysRequestHeader
.IfModifiedSince => (_flag0 & 0x400000u) != 0 ? _IfModifiedSince.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.IfModifiedSince),
2819
HttpSysRequestHeader
.IfNoneMatch => (_flag0 & 0x800000u) != 0 ? _IfNoneMatch.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.IfNoneMatch),
2820
HttpSysRequestHeader
.IfRange => (_flag0 & 0x1000000u) != 0 ? _IfRange.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.IfRange),
2821
HttpSysRequestHeader
.IfUnmodifiedSince => (_flag0 & 0x2000000u) != 0 ? _IfUnmodifiedSince.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.IfUnmodifiedSince),
2822
HttpSysRequestHeader
.KeepAlive => (_flag0 & 0x4000000u) != 0 ? _KeepAlive.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.KeepAlive),
2823
HttpSysRequestHeader
.LastModified => (_flag0 & 0x8000000u) != 0 ? _LastModified.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.LastModified),
2824
HttpSysRequestHeader
.MaxForwards => (_flag0 & 0x10000000u) != 0 ? _MaxForwards.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.MaxForwards),
2825
HttpSysRequestHeader
.Pragma => (_flag0 & 0x20000000u) != 0 ? _Pragma.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.Pragma),
2826
HttpSysRequestHeader
.ProxyAuthorization => (_flag0 & 0x40000000u) != 0 ? _ProxyAuthorization.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.ProxyAuthorization),
2827
HttpSysRequestHeader
.Range => (_flag0 & 0x80000000u) != 0 ? _Range.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.Range),
2828
HttpSysRequestHeader
.Referer => (_flag1 & 0x1u) != 0 ? _Referer.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.Referer),
2829
HttpSysRequestHeader
.Te => (_flag1 & 0x2u) != 0 ? _TE.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.Te),
2830
HttpSysRequestHeader
.Trailer => (_flag1 & 0x4u) != 0 ? _Trailer.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.Trailer),
2831
HttpSysRequestHeader
.TransferEncoding => (_flag1 & 0x8u) != 0 ? _TransferEncoding.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.TransferEncoding),
2832
HttpSysRequestHeader
.Translate => (_flag1 & 0x10u) != 0 ? _Translate.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.Translate),
2833
HttpSysRequestHeader
.Upgrade => (_flag1 & 0x20u) != 0 ? _Upgrade.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.Upgrade),
2834
HttpSysRequestHeader
.UserAgent => (_flag1 & 0x40u) != 0 ? _UserAgent.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.UserAgent),
2835
HttpSysRequestHeader
.Via => (_flag1 & 0x80u) != 0 ? _Via.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.Via),
2836
HttpSysRequestHeader
.Warning => (_flag1 & 0x100u) != 0 ? _Warning.Count > 0 : _requestMemoryBlob.HasKnownHeader(
HttpSysRequestHeader
.Warning),