Struct tokio_http2::router::path::RequestPath
[−]
[src]
pub struct RequestPath {
pub matcher: Regex,
}Represents a path in HTTP sense (starting from /)
Fields
matcher: Regex
Methods
impl RequestPath[src]
fn new(path: &str) -> RequestPath
Creates a new path.
This method accepts regular expressions so you can write something like this:
RequestPath::new(r"/person/\d+");
Note that you don't have to match beggining and end of the
path using ^ and $ - those are inserted for you automatically.
Trait Implementations
impl Debug for RequestPath[src]
impl Clone for RequestPath[src]
fn clone(&self) -> RequestPath
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more