wasmcloud_example_httpserver

Trait HttpServer

Source
pub trait HttpServer {
    // Required method
    fn handle_request<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        ctx: &'life1 Context<'life2>,
        arg: &'life3 HttpRequest,
    ) -> Pin<Box<dyn Future<Output = Result<HttpResponse, RpcError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

HttpServer is the contract to be implemented by actor wasmbus.contractId: wasmcloud:httpserver wasmbus.actorReceive

Required Methods§

Source

fn handle_request<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, ctx: &'life1 Context<'life2>, arg: &'life3 HttpRequest, ) -> Pin<Box<dyn Future<Output = Result<HttpResponse, RpcError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Implementors§