Rocket/core/lib
Sergio Benitez 56cf905c6e Introduce more flexible mounting.
Prior to this commit, a route with a URI of `/` could not be mounted in
such a way that the resulting effective URI contained a trailing slash.
This commit changes the semantics of mounting so that mounting such a
route to a mount point with a trailing slash yields an effective URI
with a trailing slash. When mounted to points without a trailing slash,
the effective URI does not have a trailing slash.

This commit also introduces the `Route::rebase()` and
`Catcher::rebase()` methods for easier rebasing of existing routes and
catchers.

Finally, this commit improves logging such that mount points of `/`
are underlined in the logs.

Tests and docs were added and modified as necessary.

Resolves #2533.
2023-05-03 20:03:45 -07:00
..
fuzz Hide 'RouteUri' fields to ensure URI coherence. 2023-04-10 13:26:54 -07:00
src Introduce more flexible mounting. 2023-05-03 20:03:45 -07:00
tests Tidy custom forward status changes, update docs. 2023-04-11 12:55:57 -07:00
Cargo.toml New version: 0.5.0-rc.3. 2023-03-23 16:56:17 -07:00
build.rs Migrate Rocket to Rust 2021 edition. 2022-04-19 18:35:38 -07:00