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
Request and Response are immutable and so is the context member. The documentation for context makes it seem easy to signal information to middleware and handlers.
Update context to be clear that modifying it on a request or response requires calling .change() on those objects
Adding a note in createMiddleware about the inability to forward a new request/response
Happy to work on this. Would also be happy to have a way to easily pass information down a pipeline without manipulating the request object.
The text was updated successfully, but these errors were encountered:
Hi @kevmoo, just to be clear: is it the intension that createMiddleware not allow the forwarding of a "changed" request?
I think I made the same assumption as @jtmcdole that createMiddleware would allow me to update the request, especially the context or request headers before it is passed on to the next middleware or handler.
Request
andResponse
are immutable and so is thecontext
member. The documentation for context makes it seem easy to signal information to middleware and handlers.context
to be clear that modifying it on a request or response requires calling.change()
on those objectsHappy to work on this. Would also be happy to have a way to easily pass information down a pipeline without manipulating the request object.
The text was updated successfully, but these errors were encountered: