Rocket/core
Sergio Benitez 45b4436ed3 Add default catchers: '#[catch(default)]'.
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'.
2020-07-30 01:55:41 -07:00
..
codegen Add default catchers: '#[catch(default)]'. 2020-07-30 01:55:41 -07:00
http Add default catchers: '#[catch(default)]'. 2020-07-30 01:55:41 -07:00
lib Add default catchers: '#[catch(default)]'. 2020-07-30 01:55:41 -07:00