16 writes to RequestHeadersDataClasses
Microsoft.Extensions.Http.Diagnostics.Tests (16)
Logging\HttpClientLoggerTest.cs (6)
205
RequestHeadersDataClasses
= new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData }, { "Header3", FakeTaxonomy.PrivateData } },
297
RequestHeadersDataClasses
= new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } },
404
RequestHeadersDataClasses
= new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } },
500
RequestHeadersDataClasses
= new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } },
614
RequestHeadersDataClasses
= new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } },
884
RequestHeadersDataClasses
= new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } },
Logging\HttpHeadersReaderTest.cs (2)
52
RequestHeadersDataClasses
= new Dictionary<string, DataClassification>
114
RequestHeadersDataClasses
= new Dictionary<string, DataClassification>
Logging\HttpRequestReaderTest.cs (7)
61
RequestHeadersDataClasses
= new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData }, { header3.Key, FakeTaxonomy.PrivateData } },
187
RequestHeadersDataClasses
= new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } },
261
RequestHeadersDataClasses
= new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } },
335
RequestHeadersDataClasses
= new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } },
392
RequestHeadersDataClasses
= new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } },
463
RequestHeadersDataClasses
= new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } },
530
RequestHeadersDataClasses
= 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)
44
options.
RequestHeadersDataClasses
.Add($"Header{i}", FakeTaxonomy.PublicData);
HttpClientFactory.cs (4)
29
options.
RequestHeadersDataClasses
.Add("Content-Type", FakeTaxonomy.PrivateData);
76
options.
RequestHeadersDataClasses
.Add("Content-Type", FakeTaxonomy.PrivateData);
102
options.
RequestHeadersDataClasses
.Add("Content-Type", FakeTaxonomy.PrivateData);
149
options.
RequestHeadersDataClasses
.Add("Content-Type", FakeTaxonomy.PrivateData);
Microsoft.Extensions.Http.Diagnostics.Tests (24)
Logging\AcceptanceTests.cs (10)
140
o.
RequestHeadersDataClasses
.Add("RequestHeader", FakeTaxonomy.PrivateData);
141
o.
RequestHeadersDataClasses
.Add("RequestHeaderFirst", FakeTaxonomy.PrivateData);
150
o.
RequestHeadersDataClasses
.Add("RequestHeader", FakeTaxonomy.PrivateData);
151
o.
RequestHeadersDataClasses
.Add("RequestHeaderSecond", FakeTaxonomy.PrivateData);
219
x.
RequestHeadersDataClasses
.Add("RequestHeader", FakeTaxonomy.PrivateData);
220
x.
RequestHeadersDataClasses
.Add("RequestHeader2", FakeTaxonomy.PrivateData);
230
x.
RequestHeadersDataClasses
.Add("RequestHeader", FakeTaxonomy.PrivateData);
231
x.
RequestHeadersDataClasses
.Add("RequestHeader2", FakeTaxonomy.PrivateData);
664
x.
RequestHeadersDataClasses
.Add("RequestHeader", FakeTaxonomy.PrivateData);
665
x.
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))
140
options.
RequestHeadersDataClasses
.Should().HaveCount(2);
141
options.
RequestHeadersDataClasses
.Should().ContainKeys(new List<string> { "test1", "test2" });
142
options.
RequestHeadersDataClasses
.Should().ContainValues(new List<DataClassification> { FakeTaxonomy.PrivateData });
171
options.
RequestHeadersDataClasses
.Add(requestHeader, FakeTaxonomy.PrivateData);
189
options.
RequestHeadersDataClasses
.Should().ContainSingle();
190
options.
RequestHeadersDataClasses
.Should().Contain(requestHeader, FakeTaxonomy.PrivateData);
281
options.
RequestHeadersDataClasses
.Add(requestHeader, FakeTaxonomy.PrivateData);
299
options.
RequestHeadersDataClasses
.Should().ContainSingle();
300
options.
RequestHeadersDataClasses
.Should().Contain(requestHeader, FakeTaxonomy.PrivateData);
342
x.
RequestHeadersDataClasses
.Add(ClientName, FakeTaxonomy.PublicData);
347
x.
RequestHeadersDataClasses
.Add("default", FakeTaxonomy.PrivateData);
Logging\LoggingOptionsTest.cs (1)
81
_sut.
RequestHeadersDataClasses
.Should().BeEquivalentTo(testHeaders);