package http

  1. Overview
  2. Docs

Module Http.MethodSource

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

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

Sourceval of_string : string -> t
Sourceval to_string : t -> string
Sourceval pp : Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.