mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-10 11:39:05 +00:00
ac0a77bae2
The net effect of this commit is three-fold: * A request to `/` now matches `/<a>`. `/foo/` matches `/<a>/<b>`. * A segment matched to a dynamic parameter may be empty. * A request to `/foo/` no longer matches `/foo` or `/<a>`. Instead, such a request would match `/foo/<a>` or `/foo/`. The `&str` and `String` parameter guards were updated to reflect this change: they now error, with a newly introduced error type `Empty` in the `rocket::error` module, when the parameter is empty. As this was the only built-in parameter guard that would be effected by this change (all other guards already required nonempty parameters to succeed), the majority of applications will see no effect as a result. For applications wanting the previous functionality, a new `AdHoc::uri_normalizer()` fairing was introduced. |
||
---|---|---|
.. | ||
async-entry.rs | ||
async-entry.stderr | ||
bad-ignored-segments.rs | ||
bad-ignored-segments.stderr | ||
catch_type_errors.rs | ||
catch_type_errors.stderr | ||
catch.rs | ||
catch.stderr | ||
catchers.rs | ||
catchers.stderr | ||
from_form_field.rs | ||
from_form_field.stderr | ||
from_form_type_errors.rs | ||
from_form_type_errors.stderr | ||
from_form.rs | ||
from_form.stderr | ||
responder-types.rs | ||
responder-types.stderr | ||
responder.rs | ||
responder.stderr | ||
route-attribute-general-syntax.rs | ||
route-attribute-general-syntax.stderr | ||
route-path-bad-syntax.rs | ||
route-path-bad-syntax.stderr | ||
route-type-errors.rs | ||
route-type-errors.stderr | ||
route-warnings.rs | ||
route-warnings.stderr | ||
routes.rs | ||
routes.stderr | ||
typed-uri-bad-type.rs | ||
typed-uri-bad-type.stderr | ||
typed-uris-bad-params.rs | ||
typed-uris-bad-params.stderr | ||
typed-uris-invalid-syntax.rs | ||
typed-uris-invalid-syntax.stderr | ||
uri_display_type_errors.rs | ||
uri_display_type_errors.stderr | ||
uri_display.rs | ||
uri_display.stderr |