24 references to Headers
HeaderPropagationSample (2)
Startup.cs (2)
32
options.
Headers
.Add("X-BetaFeatures");
35
options.
Headers
.Add("X-BetaFeatures", context =>
Microsoft.AspNetCore.HeaderPropagation (4)
DependencyInjection\HeaderPropagationHttpClientBuilderExtensions.cs (2)
32
for (var i = 0; i < middlewareOptions.Value.
Headers
.Count; i++)
34
var header = middlewareOptions.Value.
Headers
[i];
HeaderPropagationMiddleware.cs (1)
49
var entries = _options.
Headers
;
HeaderPropagationOptions.cs (1)
16
/// Entries in <see cref="
Headers
"/> are processed in order while capturing headers inside
Microsoft.AspNetCore.HeaderPropagation.Tests (18)
HeaderPropagationIntegrationTest.cs (6)
34
options.
Headers
.Add("X-TraceId");
84
options.
Headers
.Add("X-TraceId");
104
c.
Headers
.Add("in", "out"),
128
c.
Headers
.Add("first");
129
c.
Headers
.Add("second");
176
c => c.
Headers
.Add("in", "out"),
HeaderPropagationMiddlewareTest.cs (12)
39
Configuration.
Headers
.Add("in");
54
Configuration.
Headers
.Add("in");
80
Configuration.
Headers
.Add("in");
81
Configuration.
Headers
.Add("another");
101
Configuration.
Headers
.Add("in");
120
Configuration.
Headers
.Add("in", context =>
145
Configuration.
Headers
.Add("in", context => "test");
160
Configuration.
Headers
.Add("in", (context) => StringValues.Empty);
174
Configuration.
Headers
.Add("in", (context) => StringValues.Empty);
187
Configuration.
Headers
.Add("in");
188
Configuration.
Headers
.Add("in", (context) => StringValues.Empty);
189
Configuration.
Headers
.Add("in", (context) => "Test");