You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the problem your feature solves, or the need it fulfills?
currently we can't get the request body in any methods without consuming it.
we can use read_request_body() method on the session but it will consume the body causing the upstream get a None for the request body, which is not we wanted.
I think this is a common case for a proxy, for example, to log the request body.
Describe the solution you'd like
I'd like to get the request body in the request_filter or upstream_request_filter phase without consuming it.
The text was updated successfully, but these errors were encountered:
Note that request_body_filter was added in f38f3b9 which should allow inspecting (or mutating) the body just before sending it to the upstream.
This should fit your mentioned use case of logging the request body, so I will close, but feel free to reopen or open a new issue if you have another use case in mind. Thanks!
What is the problem your feature solves, or the need it fulfills?
currently we can't get the request body in any methods without consuming it.
we can use
read_request_body()
method on thesession
but it will consume the body causing the upstream get aNone
for the request body, which is not we wanted.I think this is a common case for a proxy, for example, to log the request body.
Describe the solution you'd like
I'd like to get the request body in the
request_filter
orupstream_request_filter
phase without consuming it.The text was updated successfully, but these errors were encountered: