18 instantiations of StringWithQualityHeaderValue
Aspire.Dashboard.Tests (2)
Integration\ResponseCompressionTests.cs (2)
27request.Headers.AcceptEncoding.Add(new StringWithQualityHeaderValue("br")); 49request.Headers.AcceptEncoding.Add(new StringWithQualityHeaderValue("br"));
IIS.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\CompressionTests.cs (2)
136client.DefaultRequestHeaders.AcceptEncoding.Add(new StringWithQualityHeaderValue("gzip")); 137client.DefaultRequestHeaders.AcceptEncoding.Add(new StringWithQualityHeaderValue("identity", 0));
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
129request.Headers.AcceptEncoding.Add(new StringWithQualityHeaderValue("gzip")); 147request.Headers.AcceptEncoding.Add(new StringWithQualityHeaderValue("gzip"));
IISExpress.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\CompressionTests.cs (2)
136client.DefaultRequestHeaders.AcceptEncoding.Add(new StringWithQualityHeaderValue("gzip")); 137client.DefaultRequestHeaders.AcceptEncoding.Add(new StringWithQualityHeaderValue("identity", 0));
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
129request.Headers.AcceptEncoding.Add(new StringWithQualityHeaderValue("gzip")); 147request.Headers.AcceptEncoding.Add(new StringWithQualityHeaderValue("gzip"));
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
ContentNegotiationTest.cs (1)
348request.Headers.AcceptCharset.Add(new StringWithQualityHeaderValue("utf-8"));
Microsoft.AspNetCore.StaticAssets.Tests (1)
StaticAssetsIntegrationTests.cs (1)
439message.Headers.AcceptEncoding.Add(new StringWithQualityHeaderValue("gzip"));
System.Net.Http (6)
System\Net\Http\Headers\StringWithQualityHeaderValue.cs (3)
110parsedValue = new StringWithQualityHeaderValue(value); 123parsedValue = new StringWithQualityHeaderValue(value, quality); 182return new StringWithQualityHeaderValue(this);
System\Net\Http\SocketsHttpHandler\DecompressionHandler.cs (3)
22private static readonly StringWithQualityHeaderValue s_gzipHeaderValue = new StringWithQualityHeaderValue(Gzip); 23private static readonly StringWithQualityHeaderValue s_deflateHeaderValue = new StringWithQualityHeaderValue(Deflate); 24private static readonly StringWithQualityHeaderValue s_brotliHeaderValue = new StringWithQualityHeaderValue(Brotli);
24 references to StringWithQualityHeaderValue
Microsoft.AspNetCore.ResponseCompression.Tests (1)
ResponseCompressionMiddlewareTest.cs (1)
1281request.Headers.AcceptEncoding.Add(System.Net.Http.Headers.StringWithQualityHeaderValue.Parse(requestAcceptEncodings[i]));
netstandard (1)
netstandard.cs (1)
1118[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Http.Headers.StringWithQualityHeaderValue))]
System.Net.Http (19)
System\Net\Http\Headers\GenericHeaderParser.cs (2)
31internal static readonly GenericHeaderParser SingleValueStringWithQualityParser = new GenericHeaderParser(false, StringWithQualityHeaderValue.GetStringWithQualityLength); 32internal static readonly GenericHeaderParser MultipleValueStringWithQualityParser = new GenericHeaderParser(true, StringWithQualityHeaderValue.GetStringWithQualityLength);
System\Net\Http\Headers\HttpRequestHeaders.cs (6)
40public HttpHeaderValueCollection<StringWithQualityHeaderValue> AcceptCharset => 41GetSpecializedCollection(AcceptCharsetSlot, static thisRef => new HttpHeaderValueCollection<StringWithQualityHeaderValue>(KnownHeaders.AcceptCharset.Descriptor, thisRef)); 43public HttpHeaderValueCollection<StringWithQualityHeaderValue> AcceptEncoding => 44GetSpecializedCollection(AcceptEncodingSlot, static thisRef => new HttpHeaderValueCollection<StringWithQualityHeaderValue>(KnownHeaders.AcceptEncoding.Descriptor, thisRef)); 46public HttpHeaderValueCollection<StringWithQualityHeaderValue> AcceptLanguage => 47GetSpecializedCollection(AcceptLanguageSlot, static thisRef => new HttpHeaderValueCollection<StringWithQualityHeaderValue>(KnownHeaders.AcceptLanguage.Descriptor, thisRef));
System\Net\Http\Headers\StringWithQualityHeaderValue.cs (6)
40private StringWithQualityHeaderValue(StringWithQualityHeaderValue source) 54obj is StringWithQualityHeaderValue other && 64public static StringWithQualityHeaderValue Parse(string input) 67return (StringWithQualityHeaderValue)GenericHeaderParser.SingleValueStringWithQualityParser.ParseValue( 71public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out StringWithQualityHeaderValue? parsedValue) 79parsedValue = (StringWithQualityHeaderValue)output!;
System\Net\Http\SocketsHttpHandler\DecompressionHandler.cs (5)
22private static readonly StringWithQualityHeaderValue s_gzipHeaderValue = new StringWithQualityHeaderValue(Gzip); 23private static readonly StringWithQualityHeaderValue s_deflateHeaderValue = new StringWithQualityHeaderValue(Deflate); 24private static readonly StringWithQualityHeaderValue s_brotliHeaderValue = new StringWithQualityHeaderValue(Brotli); 39private static bool EncodingExists(HttpHeaderValueCollection<StringWithQualityHeaderValue> acceptEncodingHeader, string encoding) 41foreach (StringWithQualityHeaderValue existingEncoding in acceptEncodingHeader)
Templates.Blazor.Tests (3)
BlazorWebTemplateTest.cs (3)
88request.Headers.AcceptEncoding.Add(StringWithQualityHeaderValue.Parse("gzip")); 89request.Headers.AcceptEncoding.Add(StringWithQualityHeaderValue.Parse("deflate")); 90request.Headers.AcceptEncoding.Add(StringWithQualityHeaderValue.Parse("br"));