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§
- A Body extractor
- This following block defines the
fields
resource which corresponds to HTTP standard Fields. - A header value.
- The following block defines the
incoming-request
andoutgoing-request
resource types that correspond to HTTP standard Requests. - The following block defines the
incoming-response
andoutgoing-response
resource types that correspond to HTTP standard Responses. - A Json extractor
- An error parsing a JSON body
- An error when the body is not UTF-8
- A unified request object that can represent both incoming and outgoing requests.
- A request builder
- A unified response object that can represent both outgoing and incoming responses.
- A builder for `Response``
- The out param for setting an
OutgoingResponse
- Exports HTTP Router items. The Spin SDK HTTP router.
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§
- Exports HTTP Router items. Route parameters extracted from a URI that match a route pattern.