Module xitca_web::http

source ·
Expand description

http types

Modules

Structs

  • A generic “error” for HTTP connections
  • A type map of protocol extensions.
  • A set of HTTP headers
  • Represents an HTTP header field name
  • Represents an HTTP header field value.
  • The Request Method (VERB)
  • Represents an HTTP request.
  • typed http extension
  • Represents an HTTP response
  • An HTTP status code (status-code in RFC 7230 et al.).
  • The URI component of a request.
  • Represents a version of the HTTP spec.

Traits

  • trait for Borrow &T from &Self. used for foreign types (from xitca-http pov) that can be impl with Borrow trait.
  • trait for Borrow &mut T from &mut Self. used for foreign types (from xitca-http pov) that can be impl with BorrowMut trait.
  • Helper trait for convert a Request to Response. This is for re-use request’s heap allocation and pass down the context data inside Extensions

Type Aliases

  • A Result typedef to use with the http::Error type
  • type alias for default request type xitca-web uses.
  • type alias for default response type xitca-web uses.