Logging request and response after middleware completes #56680
Unanswered
nazirj-absa
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is in relation to another issue that was answered and completed - #40635
I am using YARP and specifically tracking max request body size breaching a defined limit.
If I log the request body before the next delegate is executed then max request body size middleware is not executed.
However as per article, if move the read request after the next delegate then the max request body size middleware checks are executed.
But it poses an issue, I can only log either the request or response.
I know my understanding is a little shaky so any assistance will be appreciated.
Below is an example of reading a response but you lose the request.
Beta Was this translation helpful? Give feedback.
All reactions