Struct hyper_router::RouteBuilder [] [src]

pub struct RouteBuilder {
    // some fields omitted
}

Methods

impl RouteBuilder
[src]

fn new(route: Route) -> RouteBuilder

fn using(self, handler: Handler) -> Route

Completes the building process by taking the handler to process the request.

Returns created route.