Struct pencil::routing::MapAdapter [] [src]

pub struct MapAdapter<'m> {
    // some fields omitted
}

Does the URL matching and building based on runtime information.

Methods

impl<'m> MapAdapter<'m>
[src]

fn new(map: &Map, host: String, path: String, query_string: Option<String>, method: Method) -> MapAdapter

fn matched(&self) -> MapAdapterMatched

fn allowed_methods(&self) -> Vec<Method>

Get the valid methods that match for the given path.