Expand description
Wasmtime’s implementation of wasi:http
This crate is organized similarly to wasmtime_wasi where there is a
top-level p2 and p3 module corresponding to the implementation for
WASIp2 and WASIp3.
Modules§
- handler
component-model-async - Provides utilities useful for dispatching incoming HTTP requests
wasi:http/handlerguest instances. - io
- I/O utility for bridging between
tokio::ioandhyper::rt. - p2
p2 - Wasmtime’s WASI HTTPp2 Implementation
- p3
p3 - Experimental, unstable and incomplete implementation of wasip3 version of
wasi:http.
Structs§
- Field
Map - A wrapper around [
http::HeaderMap] which implementswasi:httpsemantics. - Request
Options - The concrete type behind a
wasi:http/types.request-optionsresource. - Wasi
Http - A helper struct which implements
HasDatafor thewasi:httpAPIs. - Wasi
Http Ctx - Capture the state necessary for use in the wasi-http API implementation.
- Wasi
Http CtxView - Basis of implementation of all
wasi:httpAPIs in this crate.
Enums§
- Error
- Error type for
wasi:httpembedder interactions. - Field
MapError - Errors that can happen when mutating/operating on a
FieldMap.
Constants§
- DEFAULT_
FORBIDDEN_ HEADERS - Set of [http::header::HeaderName], that are forbidden by default for requests and responses originating in the guest.
Traits§
- Wasi
Http Hooks - A trait which provides hooks into internal WASI HTTP operations.
- Wasi
Http View - A trait which provides internal WASI HTTP state.
Functions§
- default_
hooks default-send-request - Returns a value suitable for the
WasiHttpCtxView::hooksfield which has the default behavior forwasi:http. - default_
send_ request default-send-request - The default implementation of how an outgoing request is sent.