handy_http_primitives.response

Defines the HTTP response structure and associated types that are generally used when formulating a response to a client's request.

Members

Classes

HttpStatusException
class HttpStatusException

An exception that can be thrown while handling an HTTP request, to indicate that the server should return a specified response code, usually when you want to short-circuit due to an error.

Enums

ContentTypes
enum ContentTypes

Common "Content-Type" header values.

HttpStatus
enum HttpStatus

An enum defining all valid HTTP response statuses: See here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status

Structs

ServerHttpResponse
struct ServerHttpResponse

The response that's sent by a server back to a client after processing the client's HTTP request.

StatusInfo
struct StatusInfo

A struct containing basic information about a response status.