[][src]Trait tide_fluent_routes::routebuilder::RouteBuilderExt

pub trait RouteBuilderExt<State: Clone + Send + Sync + 'static>: RouteBuilder<State> {
    fn get(self, endpoint: impl Endpoint<State>) -> Self { ... }
fn head(self, endpoint: impl Endpoint<State>) -> Self { ... }
fn put(self, endpoint: impl Endpoint<State>) -> Self { ... }
fn post(self, endpoint: impl Endpoint<State>) -> Self { ... }
fn delete(self, endpoint: impl Endpoint<State>) -> Self { ... }
fn options(self, endpoint: impl Endpoint<State>) -> Self { ... }
fn connect(self, endpoint: impl Endpoint<State>) -> Self { ... }
fn patch(self, endpoint: impl Endpoint<State>) -> Self { ... }
fn trace(self, endpoint: impl Endpoint<State>) -> Self { ... } }

Some extension methods for the routebuilder to make the routing dsl a bit nicer

Provided methods

fn get(self, endpoint: impl Endpoint<State>) -> Self[src]

Add an HTTP GET endpoint

fn head(self, endpoint: impl Endpoint<State>) -> Self[src]

Add an HTTP HEAD endpoint

fn put(self, endpoint: impl Endpoint<State>) -> Self[src]

Add an HTTP PUT endpoint

fn post(self, endpoint: impl Endpoint<State>) -> Self[src]

Add an HTTP POST endpoint

fn delete(self, endpoint: impl Endpoint<State>) -> Self[src]

Add an HTTP DELETE endpoint

fn options(self, endpoint: impl Endpoint<State>) -> Self[src]

Add an HTTP OPTIONS endpoint

fn connect(self, endpoint: impl Endpoint<State>) -> Self[src]

Add an HTTP CONNECT endpoint

fn patch(self, endpoint: impl Endpoint<State>) -> Self[src]

Add an HTTP PATCH endpoint

fn trace(self, endpoint: impl Endpoint<State>) -> Self[src]

Add an HTTP TRACE endpoint

Loading content...

Implementors

impl<State: Clone + Send + Sync + 'static, R: RouteBuilder<State>> RouteBuilderExt<State> for R[src]

Loading content...