Trait wasmtime_wasi_http::types::WasiHttpView

source ·
pub trait WasiHttpView: Send {
    // Required methods
    fn ctx(&mut self) -> &mut WasiHttpCtx;
    fn table(&mut self) -> &mut ResourceTable;

    // Provided methods
    fn new_incoming_request(
        &mut self,
        req: Request<HyperIncomingBody>
    ) -> Result<Resource<HostIncomingRequest>>
       where Self: Sized { ... }
    fn new_response_outparam(
        &mut self,
        result: Sender<Result<Response<HyperOutgoingBody>, ErrorCode>>
    ) -> Result<Resource<HostResponseOutparam>> { ... }
    fn send_request(
        &mut self,
        request: OutgoingRequest
    ) -> Result<Resource<HostFutureIncomingResponse>>
       where Self: Sized { ... }
    fn is_forbidden_header(&mut self, _name: &HeaderName) -> bool { ... }
}

Required Methods§

source

fn ctx(&mut self) -> &mut WasiHttpCtx

source

fn table(&mut self) -> &mut ResourceTable

Provided Methods§

Implementors§