Module Http.Name

Names.

type t = name

See name.

val v : string -> name

v s is a name from s. Raises Invalid_argument if s is not a header name. Use decode if you need to handle failures.

val equal : name -> name -> bool

equal n n' is true iff n and n' are equal.

val compare : name -> name -> int

compare is String.compare.

val decode : string -> (name, string) Stdlib.result

decode s decodes a name from s.

val encode : name -> string

encode n encodes a name for s.

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

pp is an unspecified formatter for header names.