21 references to AdditionalRequestHeaders
Logging.W3C.Sample (3)
Startup.cs (3)
18
logging.
AdditionalRequestHeaders
.Clear();
19
logging.
AdditionalRequestHeaders
.Add("x-forwarded-for");
20
logging.
AdditionalRequestHeaders
.Add("x-client-ssl-protocol");
Microsoft.AspNetCore.HttpLogging (2)
FileLoggerProcessor.cs (1)
75
if (_fields != loggerOptions.LoggingFields || !_additionalHeaders.SetEquals(loggerOptions.
AdditionalRequestHeaders
))
W3CLoggerOptions.cs (1)
128
var clonedSet = new SortedSet<string>(options.
AdditionalRequestHeaders
, StringComparer.InvariantCultureIgnoreCase);
Microsoft.AspNetCore.HttpLogging.Tests (16)
FileLoggerProcessorTests.cs (3)
501
options.
AdditionalRequestHeaders
.Add("one");
519
options.
AdditionalRequestHeaders
.Remove("one");
520
options.
AdditionalRequestHeaders
.Add("two");
W3CLoggingMiddlewareTests.cs (13)
108
options.CurrentValue.
AdditionalRequestHeaders
.Add("x-forwarded-for");
109
options.CurrentValue.
AdditionalRequestHeaders
.Add("x-client-ssl-protocol");
110
options.CurrentValue.
AdditionalRequestHeaders
.Add(":invalid");
123
options.CurrentValue.
AdditionalRequestHeaders
.Add("ignored-header-added-after-clone");
184
options.CurrentValue.
AdditionalRequestHeaders
.Add("x-forwarded-for");
224
options.CurrentValue.
AdditionalRequestHeaders
.Add(":invalid");
225
options.CurrentValue.
AdditionalRequestHeaders
.Add("x-forwarded-for");
226
options.CurrentValue.
AdditionalRequestHeaders
.Add("Host");
227
options.CurrentValue.
AdditionalRequestHeaders
.Add("Referer");
228
options.CurrentValue.
AdditionalRequestHeaders
.Add("User-Agent");
229
options.CurrentValue.
AdditionalRequestHeaders
.Add("Cookie");
230
options.CurrentValue.
AdditionalRequestHeaders
.Add("x-client-ssl-protocol");
243
options.CurrentValue.
AdditionalRequestHeaders
.Add("ignored-header-added-after-clone");