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-request
resource. - Host
Incoming Response - The concrete type behind a
wasi:http/types/incoming-response
resource. - Host
Outgoing Request - The concrete type behind a
wasi:http/types/outgoing-request
resource. - Host
Outgoing Response - The concrete type behind a
wasi:http/types/outgoing-response
resource. - Host
Request Options - The concrete type behind a
wasi:http/types/request-options
resource. - Host
Response Outparam - The concrete type behind a
wasi:http/types/response-outparam
resource. - 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
Host
traits are implemented for.
Enums§
- Host
Fields - The concrete type behind a
wasi:http/types/fields
resource. - Host
Future Incoming Response - The concrete type behind a
wasi:http/types/future-incoming-response
resource.
Constants§
- DEFAULT_
OUTGOING_ BODY_ BUFFER_ CHUNKS - The default value configured for
WasiHttpView::outgoing_body_buffer_chunks
inWasiHttpView
. - DEFAULT_
OUTGOING_ BODY_ CHUNK_ SIZE - The default value configured for
WasiHttpView::outgoing_body_chunk_size
inWasiHttpView
.
Traits§
- Wasi
Http View - A trait which provides internal WASI HTTP state.
Functions§
- default_
send_ request - The default implementation of how an outgoing request is sent.
- default_
send_ request_ handler - 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.