Module Http.Scheme

HTTP schemes.

type t = [
  1. | `Http
  2. | `Https
]

The type for HTTP URI schemes.

val encode : t -> string

encode s encoes s as a lowercase US-ASCII token.

val tcp_port : t -> int

tcp_port s is 80 for `Http and 443 for `Https.

val pp : Stdlib.Format.formatter -> t -> unit

pp formats schemes for inspection.