src/HardHat/Extensions.cs
/// <summary>
/// The Strict-Transport-Security HTTP header tells browsers to stick with HTTPS and never visit the insecure HTTP version. 
/// </summary>
/// <param name="app"></param>
/// <param name="maxAge"></param>
/// <param name="includeSubDomains"></param>
/// <param name="preload"></param>
/// <returns></returns>
The Strict-Transport-Security HTTP header tells browsers to stick with HTTPS and never visit the insecure HTTP version.
The Strict - Transport - Security HTTP header tells browsers to stick with HTTPS and never visit the insecure HTTP version .
public static IApplicationBuilder UseHsts(this IApplicationBuilder app, TimeSpan maxAge, bool includeSubDomains = false, bool preload = false)
        {
            app.UseMiddleware<Hsts>(Convert.ToUInt64(maxAge.TotalSeconds), includeSubDomains, preload);
            return app;
        }
public static IApplicationBuilder UseHsts ( this IApplicationBuilder app , TimeSpan maxAge , bool includeSubDomains = false , bool preload = false ) { app . UseMiddleware < Hsts > ( Convert . ToUInt64 ( maxAge . TotalSeconds ) , includeSubDomains , preload ) ; return app ; }
The Strict-Transport-Security HTTP header tells browsers to stick with HTTPS and never visit the insecure HTTP version.
The Strict - Transport - Security HTTP header tells browsers to stick with HTTPS and never visit the insecure HTTP version .
None
IApplicationBuilder
this
maxAge
TimeSpan
None
includeSubDomains
bool
None
preload
bool
None
app
None