Crate davisjr

source ·

Modules

  • Application/Server-level management and routing configuration and testing support; outermost functionality.
  • Error types that davisjr uses
  • Handler construction and prototypes
  • Macros for quality-of-life when interacting with Handlers
  • A convenience import to gather all of davisjr’s dependencies in one easy place. To use:

Macros

Structs

Traits

  • TransientState must be implemented to use state between handlers.

Type Aliases

  • HTTPResult is the return type for handlers. If a handler terminates at the end of its chain with std::option::Option::None as the http::Response, a 500 Internal Server Error will be returned. If you wish to return Err(), a http::StatusCode or std::string::String can be returned, the former is resolved to its status with an empty body, and the latter corresponds to a 500 Internal Server Error with the body set to the string.
  • Params are a mapping of name -> parameter for the purposes of routing.