Trait avalanche_types::rpcchainvm::http::Handler
source · [−]pub trait Handler {
fn serve_http<'life0, 'async_trait>(
&'life0 mut self,
req: Request<String>
) -> Pin<Box<dyn Future<Output = Result<Response<String>>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn serve_http_simple<'life0, 'async_trait>(
&'life0 mut self,
req: Request<String>
) -> Pin<Box<dyn Future<Output = Result<Response<String>>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
ref: https://pkg.go.dev/net/http#Handler