16 writes to RequestHeadersDataClasses
Microsoft.Extensions.Http.Diagnostics.Tests (16)
Logging\HttpClientLoggerTest.cs (6)
205RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData }, { "Header3", FakeTaxonomy.PrivateData } }, 297RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } }, 404RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } }, 500RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } }, 614RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } }, 884RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } },
Logging\HttpHeadersReaderTest.cs (2)
52RequestHeadersDataClasses = new Dictionary<string, DataClassification> 114RequestHeadersDataClasses = new Dictionary<string, DataClassification>
Logging\HttpRequestReaderTest.cs (7)
61RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData }, { header3.Key, FakeTaxonomy.PrivateData } }, 187RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 261RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 335RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 392RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 463RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 530RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } },
Logging\LoggingOptionsTest.cs (1)
79_sut.RequestHeadersDataClasses = testHeaders;
33 references to RequestHeadersDataClasses
Microsoft.Extensions.Http.Diagnostics (4)
Logging\Internal\HttpClientLogger.cs (1)
64_logRequestHeaders = options.RequestHeadersDataClasses.Count > 0;
Logging\Internal\HttpHeadersReader.cs (1)
32_requestHeadersToLog = options.RequestHeadersDataClasses.ToFrozenDictionary(StringComparer.OrdinalIgnoreCase);
Logging\Internal\HttpRequestReader.cs (1)
87_logRequestHeaders = options.RequestHeadersDataClasses.Count > 0;
Logging\LoggingOptions.cs (1)
157/// Keep this option disabled if <see cref="RequestHeadersDataClasses"/> or <see cref="ResponseHeadersDataClasses"/>
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (5)
Benchmarks\HeadersReaderBenchmark.cs (1)
44options.RequestHeadersDataClasses.Add($"Header{i}", FakeTaxonomy.PublicData);
HttpClientFactory.cs (4)
29options.RequestHeadersDataClasses.Add("Content-Type", FakeTaxonomy.PrivateData); 76options.RequestHeadersDataClasses.Add("Content-Type", FakeTaxonomy.PrivateData); 102options.RequestHeadersDataClasses.Add("Content-Type", FakeTaxonomy.PrivateData); 149options.RequestHeadersDataClasses.Add("Content-Type", FakeTaxonomy.PrivateData);
Microsoft.Extensions.Http.Diagnostics.Tests (24)
Logging\AcceptanceTests.cs (10)
140o.RequestHeadersDataClasses.Add("RequestHeader", FakeTaxonomy.PrivateData); 141o.RequestHeadersDataClasses.Add("RequestHeaderFirst", FakeTaxonomy.PrivateData); 150o.RequestHeadersDataClasses.Add("RequestHeader", FakeTaxonomy.PrivateData); 151o.RequestHeadersDataClasses.Add("RequestHeaderSecond", FakeTaxonomy.PrivateData); 219x.RequestHeadersDataClasses.Add("RequestHeader", FakeTaxonomy.PrivateData); 220x.RequestHeadersDataClasses.Add("RequestHeader2", FakeTaxonomy.PrivateData); 230x.RequestHeadersDataClasses.Add("RequestHeader", FakeTaxonomy.PrivateData); 231x.RequestHeadersDataClasses.Add("RequestHeader2", FakeTaxonomy.PrivateData); 664x.RequestHeadersDataClasses.Add("RequestHeader", FakeTaxonomy.PrivateData); 665x.RequestHeadersDataClasses.Add("RequestHeader2", FakeTaxonomy.PrivateData);
Logging\HttpClientLoggingExtensionsTest.cs (13)
132.AddExtendedHttpClientLogging(o => o.RequestHeadersDataClasses.Add("test1", FakeTaxonomy.PrivateData)) 135.AddExtendedHttpClientLogging(o => o.RequestHeadersDataClasses.Add("test2", FakeTaxonomy.PrivateData)) 140options.RequestHeadersDataClasses.Should().HaveCount(2); 141options.RequestHeadersDataClasses.Should().ContainKeys(new List<string> { "test1", "test2" }); 142options.RequestHeadersDataClasses.Should().ContainValues(new List<DataClassification> { FakeTaxonomy.PrivateData }); 171options.RequestHeadersDataClasses.Add(requestHeader, FakeTaxonomy.PrivateData); 189options.RequestHeadersDataClasses.Should().ContainSingle(); 190options.RequestHeadersDataClasses.Should().Contain(requestHeader, FakeTaxonomy.PrivateData); 281options.RequestHeadersDataClasses.Add(requestHeader, FakeTaxonomy.PrivateData); 299options.RequestHeadersDataClasses.Should().ContainSingle(); 300options.RequestHeadersDataClasses.Should().Contain(requestHeader, FakeTaxonomy.PrivateData); 342x.RequestHeadersDataClasses.Add(ClientName, FakeTaxonomy.PublicData); 347x.RequestHeadersDataClasses.Add("default", FakeTaxonomy.PrivateData);
Logging\LoggingOptionsTest.cs (1)
81_sut.RequestHeadersDataClasses.Should().BeEquivalentTo(testHeaders);