Struct hyper_router::Path [] [src]

pub struct Path {
    pub matcher: Regex,
}

Represents a path in HTTP sense (starting from /)

Fields

Methods

impl Path
[src]

[src]

Creates a new path.

This method accepts regular expressions so you can write something like this:

use hyper_router::Path;
Path::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 Path
[src]

[src]

Formats the value using the given formatter. Read more