Skip to main content

Crate omnia_wasi_http

Crate omnia_wasi_http 

Source
Expand description

§Omnia WASI HTTP

This crate provides the HTTP interface for the Omnia runtime.

§Interface

Implements the wasi:http WIT interface (WASI Preview 2).

§Backend

Uses hyper and axum to handle outgoing requests and incoming server connections.

§Usage

Add this crate to your Cargo.toml and use it in your runtime configuration:

use omnia::runtime;
use omnia_wasi_http::WasiHttpCtx;

omnia::runtime!({
    "http": WasiHttpCtx,
});

§License

MIT OR Apache-2.0

§WASI Http Service

This module implements a runtime service for wasi:http (https://github.com/WebAssembly/wasi-http).

Macros§

omnia_wasi_view
Implementation of the WasiHttpView trait for the store context.

Structs§

HttpDefault
Default implementation for wasi:http.
WasiHttp
Host-side service for wasi:http.
WasiHttpCtxView
View into WasiHttpCtx implementation and ResourceTable.

Traits§

WasiHttpView
A trait which provides internal WASI HTTP state.