mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-09 11:09:08 +00:00
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. |
||
---|---|---|
.. | ||
codegen | ||
http | ||
lib |