Last active
August 29, 2015 14:27
-
-
Save dcomartin/90d7b7d23d57cca0585d to your computer and use it in GitHub Desktop.
OwinMiddleware
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
app.Use(async (context, next) => | |
{ | |
// Add Header | |
context.Response.Headers["Product"] = "Web Api Self Host"; | |
// Call next middleware | |
await next.Invoke(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment