Module ockam_core::api
source · Structs
- Newtype around a byte-slice that is assumed to be CBOR-encoded.
- An error type used in response bodies.
- A request/response identifier.
- A request header.
- The response header.
- Path segments, i.e. ‘/’-separated string slices.
Enums
- Request methods.
- The response status codes.
Constants
Functions
- Create a generic bad request response.
- Decode response and an optional body.
- Create an error response with status forbidden and the given message.
- Create an internal server error response
- Create an error response because the request method was unknown or not allowed.
- Decode response header only, without processing the message body.
- Create an error response because the request path was unknown.