Module types

Source

Structs§

DnsErrorPayload
Defines the case payload type for DNS-error above:
FieldSizePayload
Defines the case payload type for HTTP-response-{header,trailer}-size above:
IncomingBody
The concrete type behind a was:http/types/incoming-body resource.
IncomingRequest
The concrete type behind a wasi:http/types/incoming-request resource.
IncomingResponse
The concrete type behind a wasi:http/types/incoming-response resource.
OutgoingBody
The concrete type behind a wasi:http/types/outgoing-body resource.
OutgoingRequest
The concrete type behind a wasi:http/types/outgoing-request resource.
OutgoingResponse
The concrete type behind a wasi:http/types/outgoing-response resource.
RequestOptions
The concrete type behind a wasi:http/types/request-options resource.
ResponseOutparam
The concrete type behind a wasi:http/types/response-outparam resource.
TlsAlertReceivedPayload
Defines the case payload type for TLS-alert-received above:

Enums§

ErrorCode
These cases are inspired by the IANA HTTP Proxy Error Types: https://www.iana.org/assignments/http-proxy-status/http-proxy-status.xhtml#table-http-proxy-error-types
Fields
The concrete type behind a wasi:http/types/fields resource.
FutureIncomingResponse
The concrete type behind a wasi:http/types/future-incoming-response resource.
FutureTrailers
The concrete type behind a wasi:http/types/future-trailers resource.
HeaderError
This type enumerates the different kinds of errors that may occur when setting or appending to a fields resource.
Method
This type corresponds to HTTP standard Methods.
Scheme
This type corresponds to HTTP standard Related Schemes.

Traits§

GetHost
Host
HostFields
HostFutureIncomingResponse
HostFutureTrailers
HostIncomingBody
HostIncomingRequest
HostIncomingResponse
HostOutgoingBody
HostOutgoingRequest
HostOutgoingResponse
HostRequestOptions
HostResponseOutparam

Functions§

add_to_linker
add_to_linker_get_host

Type Aliases§

Duration
FieldKey
Field keys are always strings.
FieldName
Field names are always strings.
FieldValue
Field values should always be ASCII strings. However, in reality, HTTP implementations often have to interpret malformed values, so they are provided as a list of bytes.
Headers
Headers is an alias for Fields.
InputStream
IoError
OutputStream
Pollable
StatusCode
This type corresponds to the HTTP standard Status Code.
Trailers
Trailers is an alias for Fields.