Struct tokio_http2::router::path::RequestPath [] [src]

pub struct RequestPath {
    pub matcher: Regex,
}

Represents a path in HTTP sense (starting from /)

Fields

Methods

impl RequestPath
[src]

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]

Formats the value using the given formatter.

impl Clone for RequestPath
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more