Rocket/core
Sergio Benitez 8749d7293a Simplify and optimize router.
This surfaced a dormant concurrency related issue. Prior to this commit,
the router used `routed_segments()` to retrieve the path segments of the
request. This was okay as there was no route in the request, and matched
segments were retrieved eagerly.

This commit makes segment matching lazy, so no matching occurs if
unnecessary. Between two matches, a `route` is atomically set of
`Request`. This is now visible in `routed_segments()`, which should not
have considered the current route in the first place. This was fixed.
2021-03-19 03:49:58 -07:00
..
codegen Track and log catcher names. 2021-03-15 02:27:53 -07:00
http Support more TLS key types in PKCS format. 2021-03-17 18:23:15 -07:00
lib Simplify and optimize router. 2021-03-19 03:49:58 -07:00