Trait wasmtime_wasi_http::types::HttpResponse
source · pub trait HttpResponse: Send + Sync {
// Required methods
fn new() -> Self
where Self: Sized;
fn as_any(&self) -> &dyn Any;
fn status(&self) -> u16;
fn headers(&self) -> Option<u32>;
fn set_headers(&mut self, headers: u32);
fn body(&self) -> Option<u32>;
fn set_body(&mut self, body: u32);
fn trailers(&self) -> Option<u32>;
fn set_trailers(&mut self, trailers: u32);
}