wasmtime_wasi_http

Module types

Source
Expand description

Implements the base structure (i.e. WasiHttpCtx) that will provide the implementation of the wasi-http API.

Structs§

HostIncomingRequest
The concrete type behind a wasi:http/types/incoming-request resource.
HostIncomingResponse
The concrete type behind a wasi:http/types/incoming-response resource.
HostOutgoingRequest
The concrete type behind a wasi:http/types/outgoing-request resource.
HostOutgoingResponse
The concrete type behind a wasi:http/types/outgoing-response resource.
HostRequestOptions
The concrete type behind a wasi:http/types/request-options resource.
HostResponseOutparam
The concrete type behind a wasi:http/types/response-outparam resource.
IncomingResponse
A response that is in the process of being received.
OutgoingRequestConfig
Configuration for an outgoing request.
WasiHttpCtx
Capture the state necessary for use in the wasi-http API implementation.
WasiHttpImpl
A concrete structure that all generated Host traits are implemented for.

Enums§

HostFields
The concrete type behind a wasi:http/types/fields resource.
HostFutureIncomingResponse
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 in WasiHttpView.
DEFAULT_OUTGOING_BODY_CHUNK_SIZE
The default value configured for WasiHttpView::outgoing_body_chunk_size in WasiHttpView.

Traits§

WasiHttpView
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§

FieldMap
An owned version of HostFields
FutureIncomingResponseHandle
A handle to a future incoming response.