1 write to Handler
Microsoft.AspNetCore.HeaderPropagation.Tests (1)
HeaderPropagationMessageHandlerTest.cs (1)
14
Handler
= new SimpleHandler();
30 references to Handler
Microsoft.AspNetCore.HeaderPropagation.Tests (30)
HeaderPropagationMessageHandlerTest.cs (30)
24
InnerHandler =
Handler
49
Assert.True(
Handler
.Headers.Contains("out"));
50
Assert.Equal(new[] { "test" },
Handler
.Headers.GetValues("out"));
64
Assert.True(
Handler
.Headers.Contains("out"));
65
Assert.Equal(new[] { "one", "two" },
Handler
.Headers.GetValues("out"));
78
Assert.True(
Handler
.Content.Headers.Contains("Content-Type"));
79
Assert.Equal(new[] { "text/plain; charset=utf-8" },
Handler
.Content.Headers.GetValues("Content-Type"));
92
Assert.True(
Handler
.Content.Headers.Contains("Content-Language"));
93
Assert.Equal(new[] { "test" },
Handler
.Content.Headers.GetValues("Content-Language"));
106
Assert.True(
Handler
.Content.Headers.Contains("Content-Language"));
107
Assert.Equal(new[] { "one", "two" },
Handler
.Content.Headers.GetValues("Content-Language"));
121
Assert.True(
Handler
.Headers.Contains("out"));
122
Assert.Equal(new[] { "test" },
Handler
.Headers.GetValues("out"));
135
Assert.Empty(
Handler
.Headers);
148
Assert.Empty(
Handler
.Headers);
164
Assert.True(
Handler
.Headers.Contains("inout"));
165
Assert.True(
Handler
.Headers.Contains("another"));
166
Assert.Equal(new[] { "test" },
Handler
.Headers.GetValues("inout"));
167
Assert.Equal(new[] { "test2" },
Handler
.Headers.GetValues("another"));
183
Assert.False(
Handler
.Headers.Contains("inout"));
204
Assert.True(
Handler
.Headers.Contains("inout"));
205
Assert.Equal(expectedValues,
Handler
.Headers.GetValues("inout"));
220
Assert.True(
Handler
.Headers.Contains("name"));
221
Assert.Equal(new[] { "value" },
Handler
.Headers.GetValues("name"));
236
Assert.True(
Handler
.Headers.Contains("name"));
237
Assert.Equal(new[] { "value" },
Handler
.Headers.GetValues("name"));
238
Assert.True(
Handler
.Headers.Contains("other"));
239
Assert.Equal(new[] { "value" },
Handler
.Headers.GetValues("name"));
255
Assert.True(
Handler
.Headers.Contains("name"));
256
Assert.Equal(new[] { "value" },
Handler
.Headers.GetValues("name"));