17 references to StrictTransportSecurity
Microsoft.AspNetCore.Http.Features (2)
IHeaderDictionary.Keyed.cs (2)
215
StringValues StrictTransportSecurity { get => this[HeaderNames.
StrictTransportSecurity
]; set => this[HeaderNames.
StrictTransportSecurity
] = value; }
Microsoft.AspNetCore.HttpsPolicy.Tests (5)
HstsMiddlewareTests.cs (4)
71
Assert.Equal("max-age=2592000", response.Headers.GetValues(HeaderNames.
StrictTransportSecurity
).FirstOrDefault());
117
Assert.Equal(expected, response.Headers.GetValues(HeaderNames.
StrictTransportSecurity
).FirstOrDefault());
163
Assert.Equal(expected, response.Headers.GetValues(HeaderNames.
StrictTransportSecurity
).FirstOrDefault());
411
Assert.Contains(response.Headers, x => x.Key == HeaderNames.
StrictTransportSecurity
);
HttpsPolicyTests.cs (1)
77
Assert.Equal(expectedHstsHeader, response.Headers.GetValues(HeaderNames.
StrictTransportSecurity
).FirstOrDefault());
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheEntryFormatter.cs (1)
456
HeaderNames.
StrictTransportSecurity
,
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Internal\Http\HttpHeaders.Generated.cs (9)
354
HeaderNames.
StrictTransportSecurity
,
2401
if (!TryGetUnknown(HeaderNames.
StrictTransportSecurity
, ref value))
2410
SetValueUnknown(HeaderNames.
StrictTransportSecurity
, value);
10592
if (!TryGetUnknown(HeaderNames.
StrictTransportSecurity
, ref value))
10601
ValidateHeaderValueCharacters(HeaderNames.
StrictTransportSecurity
, value, EncodingSelector);
10602
SetValueUnknown(HeaderNames.
StrictTransportSecurity
, value);
16793
if (!TryGetUnknown(HeaderNames.
StrictTransportSecurity
, ref value))
16802
ValidateHeaderValueCharacters(HeaderNames.
StrictTransportSecurity
, value, EncodingSelector);
16803
SetValueUnknown(HeaderNames.
StrictTransportSecurity
, value);