mirror of
https://github.com/rwf2/Rocket.git
synced 2025-02-10 18:52:05 +00:00
The bulk of the changes in this commit are for creating an 'ErrorHandler' trait that works like the 'Handler' trait, but for errors. Furthermore, Rocket's default catcher now responds with a JSON payload if the preferred 'Accept' media type is JSON. This commit also fixes a bug in 'LocalRequest' where the internal 'Request' contained an correct 'URI'. |
||
---|---|---|
.. | ||
main.rs | ||
tests.rs |