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