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
WasiHttpViewtrait for the store context.
Structs§
- Http
Default - Default implementation for
wasi:http. - Wasi
Http - Host-side service for
wasi:http. - Wasi
Http CtxView - View into WasiHttpCtx implementation and ResourceTable.
Traits§
- Wasi
Http View - A trait which provides internal WASI HTTP state.