mirror of https://github.com/rwf2/Rocket.git
fa3e0334c1
This commit entirely rewrites Rocket's URI parsing routines and overhauls the 'uri!' macro resolving all known issues and removing any potential limitations for compile-time URI creation. This commit: * Introduces a new 'Reference' URI variant for URI-references. * Modifies 'Redirect' to accept 'TryFrom<Reference>'. * Introduces a new 'Asterisk' URI variant for parity. * Allows creation of any URI type from a string literal via 'uri!'. * Enables dynamic/static prefixing/suffixing of route URIs in 'uri!'. * Unifies 'Segments' and 'QuerySegments' into one generic 'Segments'. * Consolidates URI formatting types/traits into a 'uri::fmt' module. * Makes APIs more symmetric across URI types. It also includes the following less-relevant changes: * Implements 'FromParam' for a single-segment 'PathBuf'. * Adds 'FileName::is_safe()'. * No longer reparses upstream request URIs. Resolves #842. Resolves #853. Resolves #998. |
||
---|---|---|
.. | ||
async-entry.rs | ||
async-entry.stderr | ||
bad-ignored-segments.rs | ||
bad-ignored-segments.stderr | ||
catch.rs | ||
catch.stderr | ||
catch_type_errors.rs | ||
catch_type_errors.stderr | ||
catchers.rs | ||
catchers.stderr | ||
from_form.rs | ||
from_form.stderr | ||
from_form_field.rs | ||
from_form_field.stderr | ||
from_form_type_errors.rs | ||
from_form_type_errors.stderr | ||
responder-types.rs | ||
responder-types.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.rs | ||
uri_display.stderr | ||
uri_display_type_errors.rs | ||
uri_display_type_errors.stderr |