tiny_httpd/src/core/meth.mli
Simon Cruanes 4512eb137a
format
2026-02-09 22:36:58 -05:00

10 lines
298 B
OCaml

(** HTTP Methods *)
type t = [ `GET | `PUT | `POST | `HEAD | `DELETE | `OPTIONS ]
(** A HTTP method. For now we only handle a subset of these.
See https://tools.ietf.org/html/rfc7231#section-4 *)
val pp : Format.formatter -> t -> unit
val to_string : t -> string
val of_string : string -> t