Closed DASPRiD closed 9 years ago
Dislike it - too much responsabilities for a router :(
I kinda agree. This is definitely not the responsibility of the match results. It may still be part of the router, but for now I'll close this and maybe bring it up later again.
This PR adds the possibility for match results to modify the response object. Specifically, this has the following use case:
When a response is not successful, it can take care of modifying the response object, instead of leaving the application to handle that job. Currently, the following cases are handled:
Allow
header listing the allowed methods.Location
header pointing to the same URL but with an HTTPS scheme.Example usage: