mirror of https://github.com/rwf2/Rocket.git
b61ac6eb18
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. |
||
---|---|---|
.. | ||
fuzz | ||
src | ||
tests | ||
Cargo.toml | ||
build.rs |