rocket::http

Module uri

Expand description

Types for URIs and traits for rendering URI components.

Structs§

  • A URI with a scheme, authority, path, and query: http://user:pass@domain.com:4444/path?query.
  • A URI with an authority only: user:pass@host:8000.
  • Error emitted on URI parse failure.
  • A struct used to format strings for UriDisplay.
  • A URI with an absolute path and optional query: /path?query.
  • Iterator over the segments of an absolute URI path. Skips empty segments.

Enums§

  • Marker type indicating use of a type for the path UriPart of a URI.
  • Marker type indicating use of a type for the query UriPart of a URI.
  • Errors which can occur when attempting to interpret a segment string as a valid path segment.
  • An enum encapsulating any of the possible URI variants.

Traits§

  • Conversion trait for parameters used in uri! invocations.
  • Trait implemented by types that can be ignored in uri!.
  • Trait implemented by types that can be displayed as part of a URI in uri!.
  • Marker trait for types that mark a part of a URI.