(* method.ml - HTTP methods *) type t = | Get | Head | Post | Put | Delete | Connect | Options | Trace | Patch let to_string = function | Get -> "GET" | Head -> "HEAD" | Post -> "POST" | Put -> "PUT" | Delete -> "DELETE" | Connect -> "CONNECT" | Options -> "OPTIONS" | Trace -> "TRACE" | Patch -> "PATCH" ;; let pp fmt t = Stdlib.Format.fprintf fmt "%s" (to_string t)