-
how to stop sending the request after checking for a some condition in AddRequestTransform and send a response (non proxied custom) |
Beta Was this translation helpful? Give feedback.
Answered by
Tratcher
Apr 9, 2021
Replies: 1 comment 2 replies
-
Transforms can't stop the request from being sent, try using middleware for that instead: Out of curiosity, what kind of condition are you checking for, and what's the alternate response you send? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
karelz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Transforms can't stop the request from being sent, try using middleware for that instead:
https://github.com/microsoft/reverse-proxy/blob/main/docs/docfx/articles/middleware.md#send-an-immediate-response
Out of curiosity, what kind of condition are you checking for, and what's the alternate response you send?