2 writes to HeaderName
Microsoft.AspNetCore.HeaderParsing (2)
HeaderSetup.cs (2)
46
HeaderName
= Throw.IfNullOrWhitespace(headerName);
59
HeaderName
= Throw.IfNullOrWhitespace(headerName);
21 references to HeaderName
Microsoft.AspNetCore.HeaderParsing (1)
HeaderRegistry.cs (1)
31
var id = new HeaderKeyIdentity(setup.
HeaderName
, parser, setup.Cacheable);
Microsoft.AspNetCore.HeaderParsing.Tests (20)
CommonHeadersTests.cs (17)
15
Assert.Equal(HeaderNames.Host, CommonHeaders.Host.
HeaderName
);
23
Assert.Equal(HeaderNames.Accept, CommonHeaders.Accept.
HeaderName
);
31
Assert.Equal(HeaderNames.AcceptEncoding, CommonHeaders.AcceptEncoding.
HeaderName
);
39
Assert.Equal(HeaderNames.AcceptLanguage, CommonHeaders.AcceptLanguage.
HeaderName
);
47
Assert.Equal(HeaderNames.CacheControl, CommonHeaders.CacheControl.
HeaderName
);
55
Assert.Equal(HeaderNames.ContentDisposition, CommonHeaders.ContentDisposition.
HeaderName
);
63
Assert.Equal(HeaderNames.ContentType, CommonHeaders.ContentType.
HeaderName
);
71
Assert.Equal(HeaderNames.Cookie, CommonHeaders.Cookie.
HeaderName
);
79
Assert.Equal(HeaderNames.Date, CommonHeaders.Date.
HeaderName
);
87
Assert.Equal(HeaderNames.IfMatch, CommonHeaders.IfMatch.
HeaderName
);
95
Assert.Equal(HeaderNames.IfModifiedSince, CommonHeaders.IfModifiedSince.
HeaderName
);
103
Assert.Equal(HeaderNames.IfNoneMatch, CommonHeaders.IfNoneMatch.
HeaderName
);
111
Assert.Equal(HeaderNames.IfRange, CommonHeaders.IfRange.
HeaderName
);
119
Assert.Equal(HeaderNames.IfUnmodifiedSince, CommonHeaders.IfUnmodifiedSince.
HeaderName
);
127
Assert.Equal(HeaderNames.Range, CommonHeaders.Range.
HeaderName
);
135
Assert.Equal(HeaderNames.Referer, CommonHeaders.Referer.
HeaderName
);
143
Assert.Equal("X-Forwarded-For", CommonHeaders.XForwardedFor.
HeaderName
);
HeaderRegistryTests.cs (1)
33
Assert.Equal(CommonHeaders.Date.
HeaderName
, key.Name);
HeaderSetupTests.cs (2)
19
Assert.Equal(TestHeaderName, sut.
HeaderName
);
29
Assert.Equal(TestHeaderName, sut.
HeaderName
);