Created
November 24, 2016 01:09
Implementing HTTP Request Handler on ASP.NET Core Applications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HttpRequestHeaderHandlerMiddleware | |
{ | |
private readonly RequestDelegate _next; | |
private readonly HttpRequestHeaderHandlerMiddlewareOptions _options; | |
public HttpRequestHeaderHandlerMiddleware(RequestDelegate next, IOptions<HttpRequestHeaderHandlerMiddlewareOptions> options) | |
{ | |
this._next = next; | |
this._options = options.Value; | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment