Module seamless::handler::response

source ·
Expand description

This contains the HandlerResponse trait, which determines how to form an HTTP response given some type. Implement this for types that you wish to be able to return from handler functions.

Structs

Wrap responses in this to return them as JSON

Traits

Anything that you’d like to be able to return from a handler function must implement this trait, which decides how to take the result of a handler function and encode it into an http::Response<Vec<u8>>, or failing to do so, returns an ApiError.