10 instantiations of StringWithQualityHeaderValue
Aspire.Dashboard.Tests (2)
Integration\ResponseCompressionTests.cs (2)
26
request.Headers.AcceptEncoding.Add(new
StringWithQualityHeaderValue
("br"));
48
request.Headers.AcceptEncoding.Add(new
StringWithQualityHeaderValue
("br"));
Microsoft.NET.Build.Containers (1)
Registry\DefaultBlobUploadOperations.cs (1)
101
patchMessage.Headers.AcceptEncoding.Add(new
StringWithQualityHeaderValue
("gzip"));
System.Net.Http (7)
System\Net\Http\Headers\StringWithQualityHeaderValue.cs (3)
110
parsedValue = new
StringWithQualityHeaderValue
(value);
123
parsedValue = new
StringWithQualityHeaderValue
(value, quality);
182
return new
StringWithQualityHeaderValue
(this);
System\Net\Http\SocketsHttpHandler\DecompressionHandler.cs (4)
23
private static readonly StringWithQualityHeaderValue s_gzipHeaderValue =
new
(Gzip);
24
private static readonly StringWithQualityHeaderValue s_deflateHeaderValue =
new
(Deflate);
25
private static readonly StringWithQualityHeaderValue s_brotliHeaderValue =
new
(Brotli);
26
private static readonly StringWithQualityHeaderValue s_zstdHeaderValue =
new
(Zstd);
22 references to StringWithQualityHeaderValue
netstandard (1)
netstandard.cs (1)
1118
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Http.Headers.
StringWithQualityHeaderValue
))]
System.Net.Http (21)
System\Net\Http\Headers\GenericHeaderParser.cs (2)
31
internal static readonly GenericHeaderParser SingleValueStringWithQualityParser = new GenericHeaderParser(false,
StringWithQualityHeaderValue
.GetStringWithQualityLength);
32
internal static readonly GenericHeaderParser MultipleValueStringWithQualityParser = new GenericHeaderParser(true,
StringWithQualityHeaderValue
.GetStringWithQualityLength);
System\Net\Http\Headers\HttpRequestHeaders.cs (6)
40
public HttpHeaderValueCollection<
StringWithQualityHeaderValue
> AcceptCharset =>
41
GetSpecializedCollection(AcceptCharsetSlot, static thisRef => new HttpHeaderValueCollection<
StringWithQualityHeaderValue
>(KnownHeaders.AcceptCharset.Descriptor, thisRef));
43
public HttpHeaderValueCollection<
StringWithQualityHeaderValue
> AcceptEncoding =>
44
GetSpecializedCollection(AcceptEncodingSlot, static thisRef => new HttpHeaderValueCollection<
StringWithQualityHeaderValue
>(KnownHeaders.AcceptEncoding.Descriptor, thisRef));
46
public HttpHeaderValueCollection<
StringWithQualityHeaderValue
> AcceptLanguage =>
47
GetSpecializedCollection(AcceptLanguageSlot, static thisRef => new HttpHeaderValueCollection<
StringWithQualityHeaderValue
>(KnownHeaders.AcceptLanguage.Descriptor, thisRef));
System\Net\Http\Headers\StringWithQualityHeaderValue.cs (6)
40
private StringWithQualityHeaderValue(
StringWithQualityHeaderValue
source)
54
obj is
StringWithQualityHeaderValue
other &&
64
public static
StringWithQualityHeaderValue
Parse(string input)
67
return (
StringWithQualityHeaderValue
)GenericHeaderParser.SingleValueStringWithQualityParser.ParseValue(
71
public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out
StringWithQualityHeaderValue
? parsedValue)
79
parsedValue = (
StringWithQualityHeaderValue
)output!;
System\Net\Http\SocketsHttpHandler\DecompressionHandler.cs (7)
23
private static readonly
StringWithQualityHeaderValue
s_gzipHeaderValue = new(Gzip);
24
private static readonly
StringWithQualityHeaderValue
s_deflateHeaderValue = new(Deflate);
25
private static readonly
StringWithQualityHeaderValue
s_brotliHeaderValue = new(Brotli);
26
private static readonly
StringWithQualityHeaderValue
s_zstdHeaderValue = new(Zstd);
53
private static bool EncodingExists(HttpHeaderValueCollection<
StringWithQualityHeaderValue
> acceptEncodingHeader, string encoding)
55
foreach (
StringWithQualityHeaderValue
existingEncoding in acceptEncodingHeader)
75
HttpHeaderValueCollection<
StringWithQualityHeaderValue
> acceptEncoding = request.Headers.AcceptEncoding;