Module Tiny_httpd_core.Meth

HTTP Methods

type t = [
  1. | `GET
  2. | `PUT
  3. | `POST
  4. | `HEAD
  5. | `DELETE
  6. | `OPTIONS
  7. | `QUERY
]

A HTTP method. For now we only handle a subset of these.

See https://tools.ietf.org/html/rfc7231#section-4

`QUERY added

  • since 0.21 , see https://www.rfc-editor.org/info/rfc10008/

and https://blainsmith.com/articles/rfc-10008-http-query-method/

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