-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modifying request object #682
Comments
Perhaps you are looking for |
@jashandeep-sohi perhaps you muddled request and response. Cloning request with replacing headers is satisfactory solution. Other request's attributes may be added later. |
@asvetlov Ahh, yes -- Been working with responses so much, every "r" word is a "response" in my head now ;-) |
5 tasks
Fixed by #1361 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
The Request object is currently read only.
I think it would be usefull to be able to modify request headers in a middleware for example.
Being able to add stuff in the request object is nice, but so is having code that don't rely on it (that event works when the middleware is not there)
The text was updated successfully, but these errors were encountered: