src/HardHat/Extensions.cs
/// <summary>
/// change or remove the server header.
/// </summary>
/// <param name="app"></param>
/// <param name="header">Set this to null or empty string to remove the header entirely</param>
/// <returns></returns>
change or remove the server header.
change or remove the server header .
public static IApplicationBuilder UseServerHeader(this IApplicationBuilder app, string header = "")
        {
            if (string.IsNullOrWhiteSpace(header))
            {
                return app.UseMiddleware<ServerHeader>(string.Empty);
            }
            return app.UseMiddleware<ServerHeader>(header);
        }
public static IApplicationBuilder UseServerHeader ( this IApplicationBuilder app , string header = " " ) { if ( string . IsNullOrWhiteSpace ( header ) ) { return app . UseMiddleware < ServerHeader > ( string . Empty ) ; } return app . UseMiddleware < ServerHeader > ( header ) ; }
change or remove the server header.
change or remove the server header .
None
IApplicationBuilder
this
header
string
Set this to null or empty string to remove the header entirely
Set this to null or empty string to remove the header entirely
app
None