Rocket/examples
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
..
config Remove use of stable 'proc_macro_hygiene' feature. 2020-07-11 10:48:08 -07:00
content_types Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
cookies Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
errors Add default catchers: '#[catch(default)]'. 2020-07-30 01:55:41 -07:00
fairings Remove superfluous lifetimes in 'Fairing' methods. 2020-07-23 21:32:20 -07:00
form_kitchen_sink Add 'serve::crate_relative!' for relative paths. 2020-07-23 20:12:17 -07:00
form_validation Add 'serve::crate_relative!' for relative paths. 2020-07-23 20:12:17 -07:00
handlebars_templates Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
hello_2018 Use the blocking testing API everywhere. 2020-07-11 09:24:30 -07:00
hello_person Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
hello_world Use the blocking testing API everywhere. 2020-07-11 09:24:30 -07:00
json Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
managed_queue Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
manual_routes Add default catchers: '#[catch(default)]'. 2020-07-30 01:55:41 -07:00
msgpack Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
optional_redirect Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
pastebin Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
query_params Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
ranking Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
raw_sqlite Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
raw_upload Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
redirect Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
request_guard Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
request_local_state Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
session Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
state Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
static_files Add 'serve::crate_relative!' for relative paths. 2020-07-23 20:12:17 -07:00
stream Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
tera_templates Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
testing Remove use of stable 'proc_macro_hygiene' feature. 2020-07-11 10:48:08 -07:00
tls Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
todo Add 'serve::crate_relative!' for relative paths. 2020-07-23 20:12:17 -07:00
uuid Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00