Module spin_sdk::http

source ·
Expand description

Helpers for building Spin wasi-http components.

Modules§

  • Traits for converting between the various types
  • Helper functions for creating responses

Macros§

  • A macro to help with constructing a Router from a stream of tokens.

Structs§

Enums§

  • This type enumerates the different kinds of errors that may occur when initially returning a response.
  • This type corresponds to HTTP standard Related Schemes.
  • An error encountered when performing an HTTP request

Traits§

  • Exports HTTP Router items. An HTTP request handler.
  • A trait for any type that can be turned into a Response

Functions§

  • Send an outgoing request

Type Aliases§