Created
November 24, 2016 01:09
-
-
Save justinyoo/3933357763c8e19b755e4bac17650a5f to your computer and use it in GitHub Desktop.
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