20 writes to ResponseBodyContentTypes
Microsoft.Extensions.Http.Diagnostics.Tests (20)
Logging\HttpClientLoggerTest.cs (6)
206ResponseBodyContentTypes = new HashSet<string> { TextPlain }, 298ResponseBodyContentTypes = new HashSet<string> { TextPlain }, 405ResponseBodyContentTypes = new HashSet<string> { TextPlain }, 501ResponseBodyContentTypes = new HashSet<string> { TextPlain }, 615ResponseBodyContentTypes = new HashSet<string> { TextPlain }, 885ResponseBodyContentTypes = new HashSet<string> { TextPlain },
Logging\HttpRequestReaderTest.cs (7)
64ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 128ResponseBodyContentTypes = new HashSet<string> { PlainTextMedia }, 190ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 264ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 395ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 466ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 533ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
Logging\HttpResponseBodyReaderTest.cs (6)
35ResponseBodyContentTypes = new HashSet<string> { "text/plain" } 55ResponseBodyContentTypes = new HashSet<string> { "text/plain" } 78ResponseBodyContentTypes = new HashSet<string> { "text/plain" } 98ResponseBodyContentTypes = new HashSet<string> { "text/plain" } 122ResponseBodyContentTypes = new HashSet<string> { "text/plain" } 142ResponseBodyContentTypes = new HashSet<string> { "text/plain" }
Logging\LoggingOptionsTest.cs (1)
65_sut.ResponseBodyContentTypes = testContentTypes;
18 references to ResponseBodyContentTypes
Microsoft.Extensions.Http.Diagnostics (2)
Logging\Internal\HttpRequestReader.cs (1)
84_logResponseBody = options.ResponseBodyContentTypes.Count > 0;
Logging\Internal\HttpResponseBodyReader.cs (1)
34_readableResponseContentTypes = responseOptions.ResponseBodyContentTypes.ToFrozenSet(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (4)
HttpClientFactory.cs (4)
51options.ResponseBodyContentTypes.Add("application/json"); 78options.ResponseBodyContentTypes.Add("application/json"); 124options.ResponseBodyContentTypes.Add("application/json"); 151options.ResponseBodyContentTypes.Add("application/json");
Microsoft.Extensions.Http.Diagnostics.Tests (12)
Logging\AcceptanceTests.cs (5)
143o.ResponseBodyContentTypes.Add("application/json"); 153o.ResponseBodyContentTypes.Add("application/json"); 222x.ResponseBodyContentTypes.Add("application/json"); 233x.ResponseBodyContentTypes.Add("application/json"); 667x.ResponseBodyContentTypes.Add("application/json");
Logging\HttpClientLoggingExtensionsTest.cs (6)
166options.ResponseBodyContentTypes.Add(responseBodyContentType); 183options.ResponseBodyContentTypes.Should().ContainSingle(); 184options.ResponseBodyContentTypes.Should().Contain(responseBodyContentType); 276options.ResponseBodyContentTypes.Add(responseBodyContentType); 293options.ResponseBodyContentTypes.Should().ContainSingle(); 294options.ResponseBodyContentTypes.Should().Contain(responseBodyContentType);
Logging\LoggingOptionsTest.cs (1)
67_sut.ResponseBodyContentTypes.Should().BeEquivalentTo(testContentTypes);