Rocket/examples
Sergio Benitez 2893ce754d Introduce scoped catchers.
Catchers can now be scoped to paths, with preference given to the
longest-prefix, then the status code. This a breaking change for all
applications that register catchers:

  * `Rocket::register()` takes a base path to scope catchers under.
    - The previous behavior is recovered with `::register("/", ...)`.
  * Catchers now fallibly, instead of silently, collide.
  * `ErrorKind::Collision` is now `ErrorKind::Collisions`.

Related changes:

  * `Origin` implements `TryFrom<String>`, `TryFrom<&str>`.
  * All URI variants implement `TryFrom<Uri>`.
  * Added `Segments::prefix_of()`.
  * `Rocket::mount()` takes a  `TryInto<Origin<'_>>` instead of `&str`
    for the base mount point.
  * Extended `errors` example with scoped catchers.
  * Added scoped sections to catchers guide.

Internal changes:

  * Moved router code to `router/router.rs`.
2021-03-28 13:57:33 -07:00
..
config Clarify 'TempFile' configuration parameters. 2021-03-15 02:43:01 -07:00
content_types Introduce scoped catchers. 2021-03-28 13:57:33 -07:00
cookies Move examples to their own workspace. 2021-03-09 21:57:30 -08:00
errors Introduce scoped catchers. 2021-03-28 13:57:33 -07:00
fairings Remove unused imports in fairings test. 2021-03-10 22:30:23 -08:00
forms Explicitly specify 'template_dir' in forms example. 2021-03-17 18:34:05 -07:00
handlebars_templates Introduce scoped catchers. 2021-03-28 13:57:33 -07:00
hello_2018 Introduce scoped catchers. 2021-03-28 13:57:33 -07:00
hello_person Move examples to their own workspace. 2021-03-09 21:57:30 -08:00
hello_world Move examples to their own workspace. 2021-03-09 21:57:30 -08:00
json Introduce scoped catchers. 2021-03-28 13:57:33 -07:00
managed_queue Move examples to their own workspace. 2021-03-09 21:57:30 -08:00
manual_routes Introduce scoped catchers. 2021-03-28 13:57:33 -07:00
msgpack Move examples to their own workspace. 2021-03-09 21:57:30 -08:00
optional_redirect Move examples to their own workspace. 2021-03-09 21:57:30 -08:00
pastebin Move examples to their own workspace. 2021-03-09 21:57:30 -08:00
query_params Move examples to their own workspace. 2021-03-09 21:57:30 -08:00
ranking Move examples to their own workspace. 2021-03-09 21:57:30 -08:00
raw_sqlite Move examples to their own workspace. 2021-03-09 21:57:30 -08:00
raw_upload Move examples to their own workspace. 2021-03-09 21:57:30 -08:00
redirect Move examples to their own workspace. 2021-03-09 21:57:30 -08:00
request_guard Remove second lifetime from 'FromRequest'. 2021-03-14 19:57:59 -07:00
request_local_state Remove second lifetime from 'FromRequest'. 2021-03-14 19:57:59 -07:00
session Remove second lifetime from 'FromRequest'. 2021-03-14 19:57:59 -07:00
state Move examples to their own workspace. 2021-03-09 21:57:30 -08:00
static_files Move examples to their own workspace. 2021-03-09 21:57:30 -08:00
stream Move examples to their own workspace. 2021-03-09 21:57:30 -08:00
tera_templates Introduce scoped catchers. 2021-03-28 13:57:33 -07:00
testing Move examples to their own workspace. 2021-03-09 21:57:30 -08:00
tls Generate CA cert in 'gen_certs.sh'. 2021-03-17 18:25:06 -07:00
todo Move examples to their own workspace. 2021-03-09 21:57:30 -08:00
uuid Move examples to their own workspace. 2021-03-09 21:57:30 -08:00
Cargo.toml Move examples to their own workspace. 2021-03-09 21:57:30 -08:00