Expand description
Implements the base structure (i.e. WasiHttpCtx) that will provide the implementation of the wasi-http API.
Structs§
- Host
Incoming Request - The concrete type behind a
wasi:http/types.incoming-requestresource. - Host
Incoming Response - The concrete type behind a
wasi:http/types.incoming-responseresource. - Host
Outgoing Request - The concrete type behind a
wasi:http/types.outgoing-requestresource. - Host
Outgoing Response - The concrete type behind a
wasi:http/types.outgoing-responseresource. - Host
Request Options - The concrete type behind a
wasi:http/types.request-optionsresource. - Host
Response Outparam - The concrete type behind a
wasi:http/types.response-outparamresource. - Incoming
Response - A response that is in the process of being received.
- Outgoing
Request Config - Configuration for an outgoing request.
- Wasi
Http Ctx - Capture the state necessary for use in the wasi-http API implementation.
- Wasi
Http Impl - A concrete structure that all generated
Hosttraits are implemented for.
Enums§
- Host
Fields - The concrete type behind a
wasi:http/types.fieldsresource. - Host
Future Incoming Response - The concrete type behind a
wasi:http/types.future-incoming-responseresource.
Constants§
- DEFAULT_
FORBIDDEN_ HEADERS - Set of [http::header::HeaderName], that are forbidden by default for requests and responses originating in the guest.
- DEFAULT_
OUTGOING_ BODY_ BUFFER_ CHUNKS - The default value configured for
WasiHttpView::outgoing_body_buffer_chunksinWasiHttpView. - DEFAULT_
OUTGOING_ BODY_ CHUNK_ SIZE - The default value configured for
WasiHttpView::outgoing_body_chunk_sizeinWasiHttpView.
Traits§
- Wasi
Http View - A trait which provides internal WASI HTTP state.
Functions§
- default_
send_ request default-send-request - The default implementation of how an outgoing request is sent.
- default_
send_ request_ handler default-send-request - The underlying implementation of how an outgoing request is sent. This should likely be spawned in a task.
Type Aliases§
- Field
Map - An owned version of
HostFields - Future
Incoming Response Handle - A handle to a future incoming response.