Module http

Source

Modules§

client
HTTP client components.
hyper
hyper
server
HTTP server components
util
HTTP utilities for request/response conversion.

Structs§

HttpNotificationPayload
The JSON payload for a server-side event/notification.
HttpRequest
Represents an HTTP request.
HttpResponse
Represents an HTTP response
ProtocolHttpError
Body for an HTTP error response.

Enums§

ModalHttpResponse
A multilink HTTP response.

Traits§

RequestHttpConvert
A request that can convert to and from a HttpRequest<Body>.
ResponseHttpConvert
A response that can convert to and from a ModalHttpResponse.

Functions§

generic_error
Creates a generic ProtocolError using the HTTP status code description (i.e. “Bad Request” or “Not Found”) as the error text.