Example #1
0
 public static IApplicationBuilder UseCustomHeader(this IApplicationBuilder builder, HeaderOptions options)
 {
     return(builder.UseMiddleware <HeaderMiddleware>(options));
 }
Example #2
0
 public HeaderMiddleware(RequestDelegate next, ILogger <HeaderMiddleware> logger, HeaderOptions options)
 {
     _next    = next;
     _logger  = logger;
     _options = options;
 }