Module wasi::http::types

source ·

Structs§

  • Defines the case payload type for DNS-error above:
  • Defines the case payload type for HTTP-response-{header,trailer}-size above:
  • This following block defines the fields resource which corresponds to HTTP standard Fields. Fields are a common representation used for both Headers and Trailers.
  • Represents a future which may eventaully return an incoming HTTP Response, or an error.
  • Represents a future which may eventaully return trailers, or an error.
  • Represents an incoming HTTP Request or Response’s Body.
  • Represents an incoming HTTP Request.
  • Represents an incoming HTTP Response.
  • Represents an outgoing HTTP Request or Response’s Body.
  • Represents an outgoing HTTP Request.
  • Represents an outgoing HTTP Response.
  • Parameters for making an HTTP Request. Each of these parameters is currently an optional timeout applicable to the transport layer of the HTTP protocol.
  • Represents the ability to send an HTTP Response.
  • Defines the case payload type for TLS-alert-received above:

Enums§

  • 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
  • This type enumerates the different kinds of errors that may occur when setting or appending to a fields resource.
  • This type corresponds to HTTP standard Methods.
  • This type corresponds to HTTP standard Related Schemes.

Functions§

  • Attempts to extract a http-related error from the wasi:io error provided.

Type Aliases§