Module Http.Method

type t = [
  1. | `GET
  2. | `POST
  3. | `HEAD
  4. | `DELETE
  5. | `PATCH
  6. | `PUT
  7. | `OPTIONS
  8. | `TRACE
  9. | `CONNECT
  10. | `Other of string
]
val compare : t -> t -> int
val body_allowed : t -> bool

body_allowed meth returns whether meth allows a payload body to be present per RFC7231.

val of_string : string -> t
val to_string : t -> string
val pp : Stdlib.Format.formatter -> t -> unit