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