23 references to Headers
HeaderPropagationSample (1)
Startup.cs (1)
47
.AddHeaderPropagation(options => options.
Headers
.Add("X-BetaFeatures", "X-Experiments"));
Microsoft.AspNetCore.HeaderPropagation (4)
DependencyInjection\HeaderPropagationHttpClientBuilderExtensions.cs (1)
35
options.
Headers
.Add(header.CapturedHeaderName, header.CapturedHeaderName);
HeaderPropagationMessageHandler.cs (1)
55
var entries = _options.
Headers
;
HeaderPropagationMessageHandlerOptions.cs (2)
15
/// If <see cref="
Headers
"/> is empty, all the headers captured by the <see cref="HeaderPropagationMiddleware"/> are propagated.
16
/// Entries in <see cref="
Headers
"/> are processed in order while adding headers inside
Microsoft.AspNetCore.HeaderPropagation.Tests (18)
HeaderPropagationIntegrationTest.cs (1)
178
c => c.
Headers
.Add("out", "different"));
HeaderPropagationMessageHandlerTest.cs (17)
42
Configuration.
Headers
.Add("out");
57
Configuration.
Headers
.Add("out");
71
Configuration.
Headers
.Add("Content-Type");
85
Configuration.
Headers
.Add("Content-Language");
99
Configuration.
Headers
.Add("Content-Language");
114
Configuration.
Headers
.Add("state", "out");
129
Configuration.
Headers
.Add("inout");
155
Configuration.
Headers
.Add("inout");
156
Configuration.
Headers
.Add("another");
176
Configuration.
Headers
.Add("inout");
195
Configuration.
Headers
.Add("inout");
213
Configuration.
Headers
.Add("name");
214
Configuration.
Headers
.Add("name");
229
Configuration.
Headers
.Add("name");
230
Configuration.
Headers
.Add("name", "other");
248
Configuration.
Headers
.Add("name");
249
Configuration.
Headers
.Add("other", "name");