Module Http.Meth

HTTP request methods

type t = meth

See meth.

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

decode s decodes an HTTP method from s.

val encode : meth -> string

encode m encodes m to an HTTP method.

  • raises Invalid_argument

    if m is `Other t and t is not a H.is_token.

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

pp is an unspecified formatter for methods.