24 instantiations of GenericHeaderParser
System.Net.Http (24)
System\Net\Http\Headers\GenericHeaderParser.cs (24)
15
internal static readonly GenericHeaderParser HostParser = new
GenericHeaderParser
(false, ParseHost, StringComparer.OrdinalIgnoreCase);
16
internal static readonly GenericHeaderParser TokenListParser = new
GenericHeaderParser
(true, ParseTokenList, StringComparer.OrdinalIgnoreCase);
17
internal static readonly GenericHeaderParser SingleValueNameValueWithParametersParser = new
GenericHeaderParser
(false, NameValueWithParametersHeaderValue.GetNameValueWithParametersLength);
18
internal static readonly GenericHeaderParser MultipleValueNameValueWithParametersParser = new
GenericHeaderParser
(true, NameValueWithParametersHeaderValue.GetNameValueWithParametersLength);
19
internal static readonly GenericHeaderParser SingleValueNameValueParser = new
GenericHeaderParser
(false, ParseNameValue);
20
internal static readonly GenericHeaderParser MultipleValueNameValueParser = new
GenericHeaderParser
(true, ParseNameValue);
21
internal static readonly GenericHeaderParser SingleValueParserWithoutValidation = new
GenericHeaderParser
(false, ParseWithoutValidation);
22
internal static readonly GenericHeaderParser SingleValueProductParser = new
GenericHeaderParser
(false, ParseProduct);
23
internal static readonly GenericHeaderParser MultipleValueProductParser = new
GenericHeaderParser
(true, ParseProduct);
24
internal static readonly GenericHeaderParser RangeConditionParser = new
GenericHeaderParser
(false, RangeConditionHeaderValue.GetRangeConditionLength);
25
internal static readonly GenericHeaderParser SingleValueAuthenticationParser = new
GenericHeaderParser
(false, AuthenticationHeaderValue.GetAuthenticationLength);
26
internal static readonly GenericHeaderParser MultipleValueAuthenticationParser = new
GenericHeaderParser
(true, AuthenticationHeaderValue.GetAuthenticationLength);
27
internal static readonly GenericHeaderParser RangeParser = new
GenericHeaderParser
(false, RangeHeaderValue.GetRangeLength);
28
internal static readonly GenericHeaderParser RetryConditionParser = new
GenericHeaderParser
(false, RetryConditionHeaderValue.GetRetryConditionLength);
29
internal static readonly GenericHeaderParser ContentRangeParser = new
GenericHeaderParser
(false, ContentRangeHeaderValue.GetContentRangeLength);
30
internal static readonly GenericHeaderParser ContentDispositionParser = new
GenericHeaderParser
(false, ContentDispositionHeaderValue.GetDispositionTypeLength);
31
internal static readonly GenericHeaderParser SingleValueStringWithQualityParser = new
GenericHeaderParser
(false, StringWithQualityHeaderValue.GetStringWithQualityLength);
32
internal static readonly GenericHeaderParser MultipleValueStringWithQualityParser = new
GenericHeaderParser
(true, StringWithQualityHeaderValue.GetStringWithQualityLength);
33
internal static readonly GenericHeaderParser SingleValueEntityTagParser = new
GenericHeaderParser
(false, ParseSingleEntityTag);
34
internal static readonly GenericHeaderParser MultipleValueEntityTagParser = new
GenericHeaderParser
(true, ParseMultipleEntityTags);
35
internal static readonly GenericHeaderParser SingleValueViaParser = new
GenericHeaderParser
(false, ViaHeaderValue.GetViaLength);
36
internal static readonly GenericHeaderParser MultipleValueViaParser = new
GenericHeaderParser
(true, ViaHeaderValue.GetViaLength);
37
internal static readonly GenericHeaderParser SingleValueWarningParser = new
GenericHeaderParser
(false, WarningHeaderValue.GetWarningLength);
38
internal static readonly GenericHeaderParser MultipleValueWarningParser = new
GenericHeaderParser
(true, WarningHeaderValue.GetWarningLength);
82 references to GenericHeaderParser
System.Net.Http (82)
System\Net\Http\Headers\AuthenticationHeaderValue.cs (2)
99
return (AuthenticationHeaderValue)
GenericHeaderParser
.SingleValueAuthenticationParser.ParseValue(
108
if (
GenericHeaderParser
.SingleValueAuthenticationParser.TryParseValue(input, null, ref index, out object? output))
System\Net\Http\Headers\CacheControlHeaderValue.cs (2)
29
private static readonly
GenericHeaderParser
s_nameValueListParser =
GenericHeaderParser
.MultipleValueNameValueParser;
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (2)
191
return (ContentDispositionHeaderValue)
GenericHeaderParser
.ContentDispositionParser.ParseValue(input,
200
if (
GenericHeaderParser
.ContentDispositionParser.TryParseValue(input, null, ref index, out object? output))
System\Net\Http\Headers\ContentRangeHeaderValue.cs (2)
141
return (ContentRangeHeaderValue)
GenericHeaderParser
.ContentRangeParser.ParseValue(input, null, ref index);
149
if (
GenericHeaderParser
.ContentRangeParser.TryParseValue(input, null, ref index, out object? output))
System\Net\Http\Headers\EntityTagHeaderValue.cs (2)
68
return (EntityTagHeaderValue)
GenericHeaderParser
.SingleValueEntityTagParser.ParseValue(
77
if (
GenericHeaderParser
.SingleValueEntityTagParser.TryParseValue(input, null, ref index, out object? output))
System\Net\Http\Headers\GenericHeaderParser.cs (24)
15
internal static readonly
GenericHeaderParser
HostParser = new GenericHeaderParser(false, ParseHost, StringComparer.OrdinalIgnoreCase);
16
internal static readonly
GenericHeaderParser
TokenListParser = new GenericHeaderParser(true, ParseTokenList, StringComparer.OrdinalIgnoreCase);
17
internal static readonly
GenericHeaderParser
SingleValueNameValueWithParametersParser = new GenericHeaderParser(false, NameValueWithParametersHeaderValue.GetNameValueWithParametersLength);
18
internal static readonly
GenericHeaderParser
MultipleValueNameValueWithParametersParser = new GenericHeaderParser(true, NameValueWithParametersHeaderValue.GetNameValueWithParametersLength);
19
internal static readonly
GenericHeaderParser
SingleValueNameValueParser = new GenericHeaderParser(false, ParseNameValue);
20
internal static readonly
GenericHeaderParser
MultipleValueNameValueParser = new GenericHeaderParser(true, ParseNameValue);
21
internal static readonly
GenericHeaderParser
SingleValueParserWithoutValidation = new GenericHeaderParser(false, ParseWithoutValidation);
22
internal static readonly
GenericHeaderParser
SingleValueProductParser = new GenericHeaderParser(false, ParseProduct);
23
internal static readonly
GenericHeaderParser
MultipleValueProductParser = new GenericHeaderParser(true, ParseProduct);
24
internal static readonly
GenericHeaderParser
RangeConditionParser = new GenericHeaderParser(false, RangeConditionHeaderValue.GetRangeConditionLength);
25
internal static readonly
GenericHeaderParser
SingleValueAuthenticationParser = new GenericHeaderParser(false, AuthenticationHeaderValue.GetAuthenticationLength);
26
internal static readonly
GenericHeaderParser
MultipleValueAuthenticationParser = new GenericHeaderParser(true, AuthenticationHeaderValue.GetAuthenticationLength);
27
internal static readonly
GenericHeaderParser
RangeParser = new GenericHeaderParser(false, RangeHeaderValue.GetRangeLength);
28
internal static readonly
GenericHeaderParser
RetryConditionParser = new GenericHeaderParser(false, RetryConditionHeaderValue.GetRetryConditionLength);
29
internal static readonly
GenericHeaderParser
ContentRangeParser = new GenericHeaderParser(false, ContentRangeHeaderValue.GetContentRangeLength);
30
internal static readonly
GenericHeaderParser
ContentDispositionParser = new GenericHeaderParser(false, ContentDispositionHeaderValue.GetDispositionTypeLength);
31
internal static readonly
GenericHeaderParser
SingleValueStringWithQualityParser = new GenericHeaderParser(false, StringWithQualityHeaderValue.GetStringWithQualityLength);
32
internal static readonly
GenericHeaderParser
MultipleValueStringWithQualityParser = new GenericHeaderParser(true, StringWithQualityHeaderValue.GetStringWithQualityLength);
33
internal static readonly
GenericHeaderParser
SingleValueEntityTagParser = new GenericHeaderParser(false, ParseSingleEntityTag);
34
internal static readonly
GenericHeaderParser
MultipleValueEntityTagParser = new GenericHeaderParser(true, ParseMultipleEntityTags);
35
internal static readonly
GenericHeaderParser
SingleValueViaParser = new GenericHeaderParser(false, ViaHeaderValue.GetViaLength);
36
internal static readonly
GenericHeaderParser
MultipleValueViaParser = new GenericHeaderParser(true, ViaHeaderValue.GetViaLength);
37
internal static readonly
GenericHeaderParser
SingleValueWarningParser = new GenericHeaderParser(false, WarningHeaderValue.GetWarningLength);
38
internal static readonly
GenericHeaderParser
MultipleValueWarningParser = new GenericHeaderParser(true, WarningHeaderValue.GetWarningLength);
System\Net\Http\Headers\HttpHeaderValueCollection.cs (1)
185
if (_descriptor.Parser ==
GenericHeaderParser
.TokenListParser)
System\Net\Http\Headers\KnownHeaders.cs (29)
17
public static readonly KnownHeader AcceptCharset = new KnownHeader("Accept-Charset", HttpHeaderType.Request,
GenericHeaderParser
.MultipleValueStringWithQualityParser, null, H2StaticTable.AcceptCharset);
18
public static readonly KnownHeader AcceptEncoding = new KnownHeader("Accept-Encoding", HttpHeaderType.Request,
GenericHeaderParser
.MultipleValueStringWithQualityParser, null, H2StaticTable.AcceptEncoding, H3StaticTable.AcceptEncodingGzipDeflateBr);
19
public static readonly KnownHeader AcceptLanguage = new KnownHeader("Accept-Language", HttpHeaderType.Request,
GenericHeaderParser
.MultipleValueStringWithQualityParser, null, H2StaticTable.AcceptLanguage, H3StaticTable.AcceptLanguage);
21
public static readonly KnownHeader AcceptRanges = new KnownHeader("Accept-Ranges", HttpHeaderType.Response,
GenericHeaderParser
.TokenListParser, null, H2StaticTable.AcceptRanges, H3StaticTable.AcceptRangesBytes);
29
public static readonly KnownHeader Allow = new KnownHeader("Allow", HttpHeaderType.Content,
GenericHeaderParser
.TokenListParser, null, H2StaticTable.Allow);
32
public static readonly KnownHeader Authorization = new KnownHeader("Authorization", HttpHeaderType.Request | HttpHeaderType.NonTrailing,
GenericHeaderParser
.SingleValueAuthenticationParser, null, H2StaticTable.Authorization, H3StaticTable.Authorization);
34
public static readonly KnownHeader Connection = new KnownHeader("Connection", HttpHeaderType.General,
GenericHeaderParser
.TokenListParser, new string[] { "close" });
35
public static readonly KnownHeader ContentDisposition = new KnownHeader("Content-Disposition", HttpHeaderType.Content | HttpHeaderType.NonTrailing,
GenericHeaderParser
.ContentDispositionParser, new string[] { "inline", "attachment" }, H2StaticTable.ContentDisposition, H3StaticTable.ContentDisposition);
36
public static readonly KnownHeader ContentEncoding = new KnownHeader("Content-Encoding", HttpHeaderType.Content | HttpHeaderType.NonTrailing,
GenericHeaderParser
.TokenListParser, new string[] { "gzip", "deflate", "br", "compress", "identity" }, H2StaticTable.ContentEncoding, H3StaticTable.ContentEncodingBr);
37
public static readonly KnownHeader ContentLanguage = new KnownHeader("Content-Language", HttpHeaderType.Content,
GenericHeaderParser
.TokenListParser, null, H2StaticTable.ContentLanguage);
41
public static readonly KnownHeader ContentRange = new KnownHeader("Content-Range", HttpHeaderType.Content | HttpHeaderType.NonTrailing,
GenericHeaderParser
.ContentRangeParser, null, H2StaticTable.ContentRange);
47
public static readonly KnownHeader ETag = new KnownHeader("ETag", HttpHeaderType.Response,
GenericHeaderParser
.SingleValueEntityTagParser, null, H2StaticTable.ETag, H3StaticTable.ETag);
48
public static readonly KnownHeader Expect = new KnownHeader("Expect", HttpHeaderType.Request | HttpHeaderType.NonTrailing,
GenericHeaderParser
.MultipleValueNameValueWithParametersParser, new string[] { "100-continue" }, H2StaticTable.Expect);
51
public static readonly KnownHeader From = new KnownHeader("From", HttpHeaderType.Request,
GenericHeaderParser
.SingleValueParserWithoutValidation, null, H2StaticTable.From);
55
public static readonly KnownHeader Host = new KnownHeader("Host", HttpHeaderType.Request | HttpHeaderType.NonTrailing,
GenericHeaderParser
.HostParser, null, H2StaticTable.Host);
56
public static readonly KnownHeader IfMatch = new KnownHeader("If-Match", HttpHeaderType.Request | HttpHeaderType.NonTrailing,
GenericHeaderParser
.MultipleValueEntityTagParser, null, H2StaticTable.IfMatch);
58
public static readonly KnownHeader IfNoneMatch = new KnownHeader("If-None-Match", HttpHeaderType.Request | HttpHeaderType.NonTrailing,
GenericHeaderParser
.MultipleValueEntityTagParser, null, H2StaticTable.IfNoneMatch, H3StaticTable.IfNoneMatch);
59
public static readonly KnownHeader IfRange = new KnownHeader("If-Range", HttpHeaderType.Request | HttpHeaderType.NonTrailing,
GenericHeaderParser
.RangeConditionParser, null, H2StaticTable.IfRange, H3StaticTable.IfRange);
68
public static readonly KnownHeader Pragma = new KnownHeader("Pragma", HttpHeaderType.General | HttpHeaderType.NonTrailing,
GenericHeaderParser
.MultipleValueNameValueParser, new string[] { "no-cache" });
69
public static readonly KnownHeader ProxyAuthenticate = new KnownHeader("Proxy-Authenticate", HttpHeaderType.Response | HttpHeaderType.NonTrailing,
GenericHeaderParser
.MultipleValueAuthenticationParser, null, H2StaticTable.ProxyAuthenticate);
70
public static readonly KnownHeader ProxyAuthorization = new KnownHeader("Proxy-Authorization", HttpHeaderType.Request | HttpHeaderType.NonTrailing,
GenericHeaderParser
.SingleValueAuthenticationParser, null, H2StaticTable.ProxyAuthorization);
74
public static readonly KnownHeader Range = new KnownHeader("Range", HttpHeaderType.Request | HttpHeaderType.NonTrailing,
GenericHeaderParser
.RangeParser, null, H2StaticTable.Range, H3StaticTable.RangeBytes0ToAll);
78
public static readonly KnownHeader RetryAfter = new KnownHeader("Retry-After", HttpHeaderType.Response | HttpHeaderType.NonTrailing,
GenericHeaderParser
.RetryConditionParser, null, H2StaticTable.RetryAfter);
91
public static readonly KnownHeader Trailer = new KnownHeader("Trailer", HttpHeaderType.General | HttpHeaderType.NonTrailing,
GenericHeaderParser
.TokenListParser);
93
public static readonly KnownHeader Upgrade = new KnownHeader("Upgrade", HttpHeaderType.General,
GenericHeaderParser
.MultipleValueProductParser);
96
public static readonly KnownHeader Vary = new KnownHeader("Vary", HttpHeaderType.Response | HttpHeaderType.NonTrailing,
GenericHeaderParser
.TokenListParser, new string[] { "*" }, H2StaticTable.Vary, H3StaticTable.VaryAcceptEncoding);
97
public static readonly KnownHeader Via = new KnownHeader("Via", HttpHeaderType.General,
GenericHeaderParser
.MultipleValueViaParser, null, H2StaticTable.Via);
98
public static readonly KnownHeader WWWAuthenticate = new KnownHeader("WWW-Authenticate", HttpHeaderType.Response | HttpHeaderType.NonTrailing,
GenericHeaderParser
.MultipleValueAuthenticationParser, null, H2StaticTable.WwwAuthenticate);
99
public static readonly KnownHeader Warning = new KnownHeader("Warning", HttpHeaderType.General | HttpHeaderType.NonTrailing,
GenericHeaderParser
.MultipleValueWarningParser);
System\Net\Http\Headers\NameValueHeaderValue.cs (2)
118
return (NameValueHeaderValue)
GenericHeaderParser
.SingleValueNameValueParser.ParseValue(
127
if (
GenericHeaderParser
.SingleValueNameValueParser.TryParseValue(input, null, ref index, out object? output))
System\Net\Http\Headers\NameValueWithParametersHeaderValue.cs (2)
78
return (NameValueWithParametersHeaderValue)
GenericHeaderParser
.SingleValueNameValueWithParametersParser
87
if (
GenericHeaderParser
.SingleValueNameValueWithParametersParser.TryParseValue(input,
System\Net\Http\Headers\ProductHeaderValue.cs (2)
88
return (ProductHeaderValue)
GenericHeaderParser
.SingleValueProductParser.ParseValue(input, null, ref index);
96
if (
GenericHeaderParser
.SingleValueProductParser.TryParseValue(input, null, ref index, out object? output))
System\Net\Http\Headers\RangeConditionHeaderValue.cs (2)
56
return (RangeConditionHeaderValue)
GenericHeaderParser
.RangeConditionParser.ParseValue(
65
if (
GenericHeaderParser
.RangeConditionParser.TryParseValue(input, null, ref index, out object? output))
System\Net\Http\Headers\RangeHeaderValue.cs (2)
115
return (RangeHeaderValue)
GenericHeaderParser
.RangeParser.ParseValue(input, null, ref index);
123
if (
GenericHeaderParser
.RangeParser.TryParseValue(input, null, ref index, out object? output))
System\Net\Http\Headers\RetryConditionHeaderValue.cs (2)
60
return (RetryConditionHeaderValue)
GenericHeaderParser
.RetryConditionParser.ParseValue(
69
if (
GenericHeaderParser
.RetryConditionParser.TryParseValue(input, null, ref index, out object? output))
System\Net\Http\Headers\StringWithQualityHeaderValue.cs (2)
67
return (StringWithQualityHeaderValue)
GenericHeaderParser
.SingleValueStringWithQualityParser.ParseValue(
76
if (
GenericHeaderParser
.SingleValueStringWithQualityParser.TryParseValue(
System\Net\Http\Headers\ViaHeaderValue.cs (2)
121
return (ViaHeaderValue)
GenericHeaderParser
.SingleValueViaParser.ParseValue(input, null, ref index);
129
if (
GenericHeaderParser
.SingleValueViaParser.TryParseValue(input, null, ref index, out object? output))
System\Net\Http\Headers\WarningHeaderValue.cs (2)
119
return (WarningHeaderValue)
GenericHeaderParser
.SingleValueWarningParser.ParseValue(input, null, ref index);
127
if (
GenericHeaderParser
.SingleValueWarningParser.TryParseValue(input, null, ref index, out object? output))