Rocket/core/codegen/tests
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
..
ui-fail Implement more conservative URI normalization. 2023-04-07 19:59:57 -07:00
ui-fail-nightly Tidy custom forward status changes, update docs. 2023-04-11 12:55:57 -07:00
ui-fail-stable Tidy custom forward status changes, update docs. 2023-04-11 12:55:57 -07:00
async-entry.rs Revamp shutdown to recover shutdown 'Rocket'. 2022-05-07 06:12:24 -05:00
async-routes.rs Workaround 'rustc' bug, compiling more async code. 2021-08-24 19:46:47 -07:00
catcher.rs Add internal '__typed_stream' proc-macro. 2021-06-01 11:43:51 -07:00
expansion.rs Retrieve managed state via a borrow: '&State<T>'. 2021-05-11 08:58:16 -05:00
from_form.rs Fix a bunch of typos. 2023-03-23 16:27:08 -07:00
from_form_field.rs Allow several 'field' attributes in all derives. 2021-04-07 23:09:05 -07:00
responder.rs Allow named field generics in 'UriDisplay' derive. 2021-07-01 06:02:40 -07:00
route-data.rs Drop 'Data' after sending a response, not before. 2021-06-08 13:26:16 -07:00
route-format.rs Impl 'IntoCollection' for '[T; N]'. 2021-05-22 11:01:00 -07:00
route-ranking.rs Rename 'rocket::ignite()' to 'rocket::build()'. 2021-04-08 01:07:52 -07:00
route-raw.rs Overhaul URI types, parsers, 'uri!' macro. 2021-05-19 18:47:11 -07:00
route.rs Make trailing slashes significant during routing. 2023-04-10 12:40:39 -07:00
segment-ignore.rs Rename 'rocket::ignite()' to 'rocket::build()'. 2021-04-08 01:07:52 -07:00
typed-uris.rs Introduce more flexible mounting. 2023-05-03 20:03:45 -07:00
ui-fail.rs Allow UI tests to fail in CI. 2023-01-30 16:06:18 -08:00
uri_display.rs Allow named field generics in 'UriDisplay' derive. 2021-07-01 06:02:40 -07:00