Module humphrey::app[][src]

Structs

Represents the Humphrey app.

Type Definitions

Represents a function able to calculate whether a connection will be accepted.

Represents a function able to handle a connection. In most cases, the default connection handler should be used.

Represents a function able to handle an error. The first parameter of type Option<Request> will be Some if the request could be parsed. Otherwise, it will be None and the status code will be StatusCode::BadRequest.

Represents a generic error with the program.

Represents a function able to handle a request. It is passed a the request as well as the app’s state, and must return a response.

Represents a function able to handle a WebSocket handshake and consequent data frames.