40 references to AcceptEncoding
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.ResponseCompression.Tests (17)
ResponseCompressionMiddlewareTest.cs (17)
178request.Headers.AcceptEncoding.ParseAdd("gzip"); 336request.Headers.AcceptEncoding.ParseAdd("gzip"); 475request.Headers.AcceptEncoding.ParseAdd("gzip"); 538request.Headers.AcceptEncoding.ParseAdd("gzip"); 601request.Headers.AcceptEncoding.ParseAdd("gzip"); 654request.Headers.AcceptEncoding.ParseAdd(encoding); 699request.Headers.AcceptEncoding.ParseAdd(encoding); 751request.Headers.AcceptEncoding.ParseAdd(encoding); 804request.Headers.AcceptEncoding.ParseAdd(encoding); 874request.Headers.AcceptEncoding.ParseAdd(encoding); 938request.Headers.AcceptEncoding.ParseAdd(encoding); 1002request.Headers.AcceptEncoding.ParseAdd(encoding); 1063request.Headers.AcceptEncoding.ParseAdd("gzip"); 1113request.Headers.AcceptEncoding.ParseAdd("gzip"); 1163request.Headers.AcceptEncoding.ParseAdd("gzip"); 1213request.Headers.AcceptEncoding.ParseAdd(encoding); 1281request.Headers.AcceptEncoding.Add(System.Net.Http.Headers.StringWithQualityHeaderValue.Parse(requestAcceptEncodings[i]));
Microsoft.AspNetCore.StaticAssets.Tests (1)
StaticAssetsIntegrationTests.cs (1)
439message.Headers.AcceptEncoding.Add(new StringWithQualityHeaderValue("gzip"));
ServerComparison.FunctionalTests (2)
ResponseCompressionTests.cs (2)
168request.Headers.AcceptEncoding.ParseAdd("gzip,deflate"); 200request.Headers.AcceptEncoding.ParseAdd("gzip,deflate");
System.Net.Http (6)
System\Net\Http\SocketsHttpHandler\DecompressionHandler.cs (6)
54if (GZipEnabled && !EncodingExists(request.Headers.AcceptEncoding, Gzip)) 56request.Headers.AcceptEncoding.Add(s_gzipHeaderValue); 59if (DeflateEnabled && !EncodingExists(request.Headers.AcceptEncoding, Deflate)) 61request.Headers.AcceptEncoding.Add(s_deflateHeaderValue); 64if (BrotliEnabled && !EncodingExists(request.Headers.AcceptEncoding, Brotli)) 66request.Headers.AcceptEncoding.Add(s_brotliHeaderValue);
Templates.Blazor.Tests (4)
BlazorWebTemplateTest.cs (4)
87request.Headers.AcceptEncoding.Clear(); 88request.Headers.AcceptEncoding.Add(StringWithQualityHeaderValue.Parse("gzip")); 89request.Headers.AcceptEncoding.Add(StringWithQualityHeaderValue.Parse("deflate")); 90request.Headers.AcceptEncoding.Add(StringWithQualityHeaderValue.Parse("br"));