[][src]Trait conjure_http::server::Handler

pub trait Handler<T, B, R> where
    B: RequestBody,
    R: VisitResponse
{ fn handle(
        &self,
        service: &T,
        path_params: &PathParams,
        query_params: &QueryParams,
        headers: &HeaderMap,
        body: B,
        response_visitor: R
    ) -> Result<R::Output, Error>; }

A trait implemented by synchronous endpoint handlers.

Required methods

fn handle(
    &self,
    service: &T,
    path_params: &PathParams,
    query_params: &QueryParams,
    headers: &HeaderMap,
    body: B,
    response_visitor: R
) -> Result<R::Output, Error>

Handles a synchronous request.

Loading content...

Implementors

Loading content...