23 writes to ResponseBodyContentTypes
Microsoft.Extensions.Http.Diagnostics.Tests (23)
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 (9)
43ResponseBodyContentTypes = new HashSet<string> { TextPlain } 63ResponseBodyContentTypes = new HashSet<string> { TextPlain } 82ResponseBodyContentTypes = new HashSet<string> { TextPlain } 104ResponseBodyContentTypes = new HashSet<string> { TextPlain } 124ResponseBodyContentTypes = new HashSet<string> { TextPlain } 148ResponseBodyContentTypes = new HashSet<string> { TextPlain } 176ResponseBodyContentTypes = new HashSet<string> { TextPlain } 209ResponseBodyContentTypes = new HashSet<string> { TextPlain }, 237ResponseBodyContentTypes = new HashSet<string> { TextPlain },
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)
37_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"); 669x.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);