GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Since response middleware are processed in the reverse order of being added, this makes Response::RaiseError be last, so the Exceptions raised have nicer, parsed bodies.
Use Response::RaiseError last.
This could create a problem though since not all bodies are formatted in a way that would allow them to be parsed.
I’m not sure how this is a problem - the response handlers will only attempt to parse responses with the appropriate content type, so if a response body doesn’t match JSON, XML or HTML it will not be parsed.