[][src]Module saphir::router

Router is responsible for redirecting requests to handlers.

SAFETY NOTICE

Inside the router we need a little bit of unsafe code. This code allow us to consider the futures generated by the handlers as 'static. This is considered safe since all data lives within the server stack which has a static lifetime over your application. We plan to remove this unsafe code as soon as we find another solution to it.

Structs

Builder

Builder type for the router