Struct canteen::route::Route [] [src]

pub struct Route {
    pub handler: fn(_: &Request) -> Response,
    // some fields omitted
}

This struct defines a route or endpoint.

Fields

Methods

impl Route
[src]

[src]

Create a new Route. This function is called by the Canteen struct.

[src]

Check if this Route matches a given URI.

[src]

Parse and extract the variables from a URI based on this Route's definition.