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 of_string 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.

Converting

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

of_string s decodes a name from s.

val to_string : name -> string

to_string n encodes a name for s.

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

pp is an unspecified formatter for header names.