29 references to ContentEncoding
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
132Assert.Equal("gzip", response.Content.Headers.ContentEncoding.Single()); 150Assert.Equal("gzip", response.Content.Headers.ContentEncoding.Single());
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
132Assert.Equal("gzip", response.Content.Headers.ContentEncoding.Single()); 150Assert.Equal("gzip", response.Content.Headers.ContentEncoding.Single());
Microsoft.AspNetCore.RequestDecompression.Tests (6)
RequestDecompressionMiddlewareTests.cs (6)
241request.Content.Headers.ContentEncoding.Add(contentEncoding); 312request.Content.Headers.ContentEncoding.Add(contentEncoding); 388request.Content.Headers.ContentEncoding.Add(contentEncoding); 490request.Content.Headers.ContentEncoding.Add(contentEncoding); 574request.Content.Headers.ContentEncoding.Add(contentEncoding); 730request.Content.Headers.ContentEncoding.Add(encoding);
Microsoft.AspNetCore.ResponseCompression.Tests (10)
ResponseCompressionMiddlewareTest.cs (10)
424Assert.True(response.Content.Headers.ContentEncoding.Contains(otherContentEncoding)); 425Assert.False(response.Content.Headers.ContentEncoding.Contains("gzip")); 756Assert.Single(response.Content.Headers.ContentEncoding, encoding); 809Assert.Single(response.Content.Headers.ContentEncoding, encoding); 878Assert.Single(response.Content.Headers.ContentEncoding, encoding); 942Assert.Single(response.Content.Headers.ContentEncoding, encoding); 1007Assert.Empty(response.Content.Headers.ContentEncoding); 1218Assert.Single(response.Content.Headers.ContentEncoding, encoding); 1302Assert.Single(response.Content.Headers.ContentEncoding, expectedEncoding); 1326Assert.Empty(response.Content.Headers.ContentEncoding);
ServerComparison.FunctionalTests (3)
ResponseCompressionTests.cs (3)
175Assert.Empty(response.Content.Headers.ContentEncoding); 207Assert.Single(response.Content.Headers.ContentEncoding); 208Assert.Equal("gzip", response.Content.Headers.ContentEncoding.First());
System.Net.Http (4)
System\Net\Http\SocketsHttpHandler\DecompressionHandler.cs (4)
72ICollection<string> contentEncodings = response.Content.Headers.ContentEncoding; 123Headers.ContentEncoding.Clear(); 125foreach (string encoding in originalContent.Headers.ContentEncoding) 129Headers.ContentEncoding.Add(prevEncoding);
System.Net.Requests (1)
System\Net\HttpWebResponse.cs (1)
119return GetHeaderValueAsString(_httpResponseMessage.Content.Headers.ContentEncoding);
Templates.Blazor.Tests (1)
BlazorWebTemplateTest.cs (1)
93Assert.Equal(expectedEncoding, response.Content.Headers.ContentEncoding.Single());