mirror of
https://github.com/rwf2/Rocket.git
synced 2024-12-29 05:42:35 +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`. |
||
---|---|---|
.. | ||
absolute-uris-okay-issue-443.rs | ||
attach-inspect.rs | ||
catcher-cookies-1213.rs | ||
conditionally-set-server-header-996.rs | ||
config-secret-key-1500.rs | ||
derive-reexports.rs | ||
encoded-uris.rs | ||
fairing_before_head_strip-issue-546.rs | ||
flash-lazy-removes-issue-466.rs | ||
form_method-issue-45.rs | ||
form_value_decoding-issue-82.rs | ||
form_value_from_encoded_str-issue-1425.rs | ||
form-validation-names.rs | ||
head_handling.rs | ||
limits.rs | ||
local_request_private_cookie-issue-368.rs | ||
local-client-access-runtime-in-drop.rs | ||
local-request-content-type-issue-505.rs | ||
many-cookie-jars-at-once.rs | ||
mapped-base-issue-1262.rs | ||
mount_point.rs | ||
nested-fairing-attaches.rs | ||
on_launch_fairing_can_inspect_port.rs | ||
panic-handling.rs | ||
precise-content-type-matching.rs | ||
redirect_from_catcher-issue-113.rs | ||
replace-content-type-518.rs | ||
responder_lifetime-issue-345.rs | ||
route_guard.rs | ||
segments-issues-41-86.rs | ||
session-cookies-issue-1506.rs | ||
strict_and_lenient_forms.rs | ||
timer-on-attach.rs | ||
tls-config-from-source-1503.rs | ||
twice_managed_state.rs | ||
typed-uri-docs-redef-issue-1373.rs | ||
unsound-local-request-1312.rs | ||
untracked-vs-tracked.rs | ||
uri-percent-encoding-issue-808.rs |