3 instantiations of MediaTypeHeaderParser
System.Net.Http (3)
System\Net\Http\Headers\MediaTypeHeaderParser.cs (3)
12
internal static readonly MediaTypeHeaderParser SingleValueParser = new
MediaTypeHeaderParser
(false, CreateMediaType);
13
internal static readonly MediaTypeHeaderParser SingleValueWithQualityParser = new
MediaTypeHeaderParser
(false, CreateMediaTypeWithQuality);
14
internal static readonly MediaTypeHeaderParser MultipleValuesParser = new
MediaTypeHeaderParser
(true, CreateMediaTypeWithQuality);
9 references to MediaTypeHeaderParser
System.Net.Http (9)
System\Net\Http\Headers\KnownHeaders.cs (2)
16
public static readonly KnownHeader Accept = new KnownHeader("Accept", HttpHeaderType.Request,
MediaTypeHeaderParser
.MultipleValuesParser, null, H2StaticTable.Accept, H3StaticTable.AcceptAny);
43
public static readonly KnownHeader ContentType = new KnownHeader("Content-Type", HttpHeaderType.Content | HttpHeaderType.NonTrailing,
MediaTypeHeaderParser
.SingleValueParser, null, H2StaticTable.ContentType, H3StaticTable.ContentTypeApplicationDnsMessage);
System\Net\Http\Headers\MediaTypeHeaderParser.cs (3)
12
internal static readonly
MediaTypeHeaderParser
SingleValueParser = new MediaTypeHeaderParser(false, CreateMediaType);
13
internal static readonly
MediaTypeHeaderParser
SingleValueWithQualityParser = new MediaTypeHeaderParser(false, CreateMediaTypeWithQuality);
14
internal static readonly
MediaTypeHeaderParser
MultipleValuesParser = new MediaTypeHeaderParser(true, CreateMediaTypeWithQuality);
System\Net\Http\Headers\MediaTypeHeaderValue.cs (2)
155
return (MediaTypeHeaderValue)
MediaTypeHeaderParser
.SingleValueParser.ParseValue(input, null, ref index);
167
if (
MediaTypeHeaderParser
.SingleValueParser.TryParseValue(input, null, ref index, out object? output))
System\Net\Http\Headers\MediaTypeWithQualityHeaderValue.cs (2)
48
return (MediaTypeWithQualityHeaderValue)
MediaTypeHeaderParser
.SingleValueWithQualityParser.ParseValue(
57
if (
MediaTypeHeaderParser
.SingleValueWithQualityParser.TryParseValue(input, null, ref index, out object? output))