Module humphrey::app

source ·
Expand description

Provides the core Humphrey app functionality.

Re-exports

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.