mirror of
https://github.com/rwf2/Rocket.git
synced 2024-12-26 12:22:36 +00:00
2893ce754d
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`. |
||
---|---|---|
.. | ||
config | ||
content_types | ||
cookies | ||
errors | ||
fairings | ||
forms | ||
handlebars_templates | ||
hello_2018 | ||
hello_person | ||
hello_world | ||
json | ||
managed_queue | ||
manual_routes | ||
msgpack | ||
optional_redirect | ||
pastebin | ||
query_params | ||
ranking | ||
raw_sqlite | ||
raw_upload | ||
redirect | ||
request_guard | ||
request_local_state | ||
session | ||
state | ||
static_files | ||
stream | ||
tera_templates | ||
testing | ||
tls | ||
todo | ||
uuid | ||
Cargo.toml |