24 writes to RequestBodyContentTypes
Microsoft.Extensions.Http.Diagnostics.Tests (24)
Logging\HttpClientLoggerTest.cs (6)
207RequestBodyContentTypes = new HashSet<string> { TextPlain }, 299RequestBodyContentTypes = new HashSet<string> { TextPlain }, 406RequestBodyContentTypes = new HashSet<string> { TextPlain }, 502RequestBodyContentTypes = new HashSet<string> { TextPlain }, 616RequestBodyContentTypes = new HashSet<string> { TextPlain }, 886RequestBodyContentTypes = new HashSet<string> { TextPlain },
Logging\HttpRequestBodyReaderTest.cs (9)
36RequestBodyContentTypes = new HashSet<string> { "text/plain" } 56RequestBodyContentTypes = new HashSet<string> { "text/plain" } 80RequestBodyContentTypes = new HashSet<string> { "text/plain" } 101RequestBodyContentTypes = new HashSet<string> { "text/plain" } 128RequestBodyContentTypes = new HashSet<string> { "text/plain" }, 152RequestBodyContentTypes = new HashSet<string> { "text/plain" }, 173RequestBodyContentTypes = new HashSet<string> { "text/plain" } 206RequestBodyContentTypes = new HashSet<string> { "text/plain" } 227RequestBodyContentTypes = new HashSet<string> { "text/plain" }
Logging\HttpRequestReaderTest.cs (8)
63RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 127RequestBodyContentTypes = new HashSet<string> { PlainTextMedia }, 189RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 263RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 336RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 394RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 465RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 532RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
Logging\LoggingOptionsTest.cs (1)
55_sut.RequestBodyContentTypes = testContentTypes;
18 references to RequestBodyContentTypes
Microsoft.Extensions.Http.Diagnostics (2)
Logging\Internal\HttpRequestBodyReader.cs (1)
38_readableRequestContentTypes = requestOptions.RequestBodyContentTypes.ToFrozenSet(StringComparer.OrdinalIgnoreCase);
Logging\Internal\HttpRequestReader.cs (1)
83_logRequestBody = options.RequestBodyContentTypes.Count > 0;
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (4)
HttpClientFactory.cs (4)
28options.RequestBodyContentTypes.Add("application/json"); 75options.RequestBodyContentTypes.Add("application/json"); 101options.RequestBodyContentTypes.Add("application/json"); 148options.RequestBodyContentTypes.Add("application/json");
Microsoft.Extensions.Http.Diagnostics.Tests (12)
Logging\AcceptanceTests.cs (5)
142o.RequestBodyContentTypes.Add("application/json"); 152o.RequestBodyContentTypes.Add("application/json"); 221x.RequestBodyContentTypes.Add("application/json"); 232x.RequestBodyContentTypes.Add("application/json"); 666x.RequestBodyContentTypes.Add("application/json");
Logging\HttpClientLoggingExtensionsTest.cs (6)
165options.RequestBodyContentTypes.Add(requestBodyContentType); 181options.RequestBodyContentTypes.Should().ContainSingle(); 182options.RequestBodyContentTypes.Should().Contain(requestBodyContentType); 275options.RequestBodyContentTypes.Add(requestBodyContentType); 291options.RequestBodyContentTypes.Should().ContainSingle(); 292options.RequestBodyContentTypes.Should().Contain(requestBodyContentType);
Logging\LoggingOptionsTest.cs (1)
57_sut.RequestBodyContentTypes.Should().BeEquivalentTo(testContentTypes);