Struct tower_web::routing::Route [−][src]
pub struct Route<T> { /* fields omitted */ }Matches an HTTP request with a resource method.
Methods
impl<T> Route<T>[src]
impl<T> Route<T>pub fn new(destination: T) -> Self[src]
pub fn new(destination: T) -> SelfCreate a new route
pub fn method(self, value: Method) -> Self[src]
pub fn method(self, value: Method) -> SelfSet the HTTP request method matched by this route.
pub fn path(self, path: &str) -> Self[src]
pub fn path(self, path: &str) -> SelfSet the HTTP request path matched by this route.