Skip to content

Conditional Request Forwarding #2295

Answered by Tratcher
noh626 asked this question in Q&A
Nov 1, 2023 · 1 comments · 9 replies
Discussion options

You must be logged in to vote

Yes, in the middleware you can check the HttpContext to see if you want to forward. If so, you call IHttpForwarder, else call the next middleware.

This will show you how to get and call the IHttpForwarder.
https://microsoft.github.io/reverse-proxy/articles/direct-forwarding.html

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@noh626
Comment options

@noh626
Comment options

@Tratcher
Comment options

Tratcher Nov 7, 2023
Collaborator

@noh626
Comment options

@Tratcher
Comment options

Tratcher Nov 7, 2023
Collaborator

Answer selected by noh626
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants