We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To route HTTP request based on the method and URL to the correct Service (#491).
Service
impl Route { fn route<S>(&mut self, method: Method, url: &str, service: S) { // ... } fn get<S>(&mut self, url: &str, service: S) { self.route(Method::Get, url, service) } }
Two additional useful features:
/static_files/*
/static_files/
/user/{handle}
handle
Possible data structure: https://en.wikipedia.org/wiki/Trie.
Blocked on #491.
The text was updated successfully, but these errors were encountered:
Pr #507 added the route! macro, but I'm leaving this open for a dynamic implementation.
route!
Sorry, something went wrong.
No branches or pull requests
To route HTTP request based on the method and URL to the correct
Service
(#491).Two additional useful features:
/static_files/*
would route any URL that starts with/static_files/
to a service./user/{handle}
would extracthandle
from the URL.Possible data structure: https://en.wikipedia.org/wiki/Trie.
Blocked on #491.
The text was updated successfully, but these errors were encountered: