feat: allow to pass values to the next function if the middleware closes the request #69
Closed
Description
Description
Instead of allowing the finalization of the request using the InternalResponse
object directly, Serinus will allow to pass a value in the next
function and, since the RequestContext
has the res property it won't be necessary to pass the InternalResponse
object in the use
method anymore.
Requirements
- Allow to pass a value in the
next
function - Remove the InternalResponse from the
use
method signature - Update the documentation
Metadata
Assignees
Labels
Projects
Status
Closed