3 releases (breaking)
Uses new Rust 2024
| new 0.30.0 | Mar 31, 2026 |
|---|---|
| 0.29.0 | Mar 27, 2026 |
| 0.28.0 | Feb 24, 2026 |
#2630 in WebAssembly
Used in omnia-sdk
57KB
992 lines
WASI Http Service
This module implements a runtime service for wasi:http
(https://github.com/WebAssembly/wasi-http).
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
Dependencies
~5–30MB
~378K SLoC