Skip to content

How to stop further execution of request in middleware #1929

Answered by B4nan
harshmaur asked this question in Q&A
Discussion options

You must be logged in to vote

The router middleware is implemented as part of the request handler, so technically you are already there. You could try throwing NonRetryableError error.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@harshmaur
Comment options

Answer selected by harshmaur
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