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.
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.