Rocket/core/lib
Sergio Benitez b61ac6eb18 Expose 'Route', 'Catcher' collision and matching.
This commit exposes four new methods:

  * `Route::collides_with(&Route)`
  * `Route::matches(&Request)`
  * `Catcher::collides_with(&Catcher)`
  * `Catcher::matches(Status, &Request)`

Each method checks the corresponding condition: whether two routes
collide, whether a route matches a request, whether two catchers
collide, and whether a catcher matches an error arising from a request.

This functionality is used internally by Rocket to make routing
decisions. By exposing these methods, external libraries can use
guaranteed consistent logic to check the same routing conditions.

Resolves #1561.
2023-04-10 22:00:54 -07:00
..
fuzz Hide 'RouteUri' fields to ensure URI coherence. 2023-04-10 13:26:54 -07:00
src Expose 'Route', 'Catcher' collision and matching. 2023-04-10 22:00:54 -07:00
tests Hide 'RouteUri' fields to ensure URI coherence. 2023-04-10 13:26:54 -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