[−][src]Trait conjure_http::server::AsyncHandler
A trait implemented by asynchronous endpoint handlers.
Required methods
ⓘImportant traits for Pin<P>fn handle<'a>(
&self,
service: &'a T,
path_params: &'a PathParams,
query_params: &'a QueryParams,
headers: &'a HeaderMap,
body: B,
response_visitor: R
) -> Pin<Box<dyn Future<Output = Result<R::Output, Error>> + Send + 'a>> where
T: 'a,
B: 'a,
R: 'a,
ⓘImportant traits for Pin<P>
&self,
service: &'a T,
path_params: &'a PathParams,
query_params: &'a QueryParams,
headers: &'a HeaderMap,
body: B,
response_visitor: R
) -> Pin<Box<dyn Future<Output = Result<R::Output, Error>> + Send + 'a>> where
T: 'a,
B: 'a,
R: 'a,
Handles an asynchronous request.