File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11open Common_
22
3- type t = [ `GET | `PUT | `POST | `HEAD | `DELETE | `OPTIONS ]
3+ type t = [ `GET | `PUT | `POST | `HEAD | `DELETE | `OPTIONS | `QUERY ]
44
55let to_string = function
66 | `GET -> " GET"
@@ -9,6 +9,7 @@ let to_string = function
99 | `POST -> " POST"
1010 | `DELETE -> " DELETE"
1111 | `OPTIONS -> " OPTIONS"
12+ | `QUERY -> " QUERY"
1213
1314let pp out s = Format. pp_print_string out (to_string s)
1415
@@ -19,4 +20,5 @@ let of_string = function
1920 | "HEAD" -> `HEAD
2021 | "DELETE" -> `DELETE
2122 | "OPTIONS" -> `OPTIONS
23+ | "QUERY" -> `QUERY
2224 | s -> bad_reqf 400 " unknown method %S" s
Original file line number Diff line number Diff line change 11(* * HTTP Methods *)
22
3- type t = [ `GET | `PUT | `POST | `HEAD | `DELETE | `OPTIONS ]
3+ type t = [ `GET | `PUT | `POST | `HEAD | `DELETE | `OPTIONS | `QUERY ]
44(* * A HTTP method. For now we only handle a subset of these.
55
6- See https://tools.ietf.org/html/rfc7231#section-4 *)
6+ See https://tools.ietf.org/html/rfc7231#section-4
7+
8+ [`QUERY] added @since NEXT_RELEASE , see https://www.rfc-editor.org/info/rfc10008/
9+ and https://blainsmith.com/articles/rfc-10008-http-query-method/
10+ *)
711
812val pp : Format .formatter -> t -> unit
913val to_string : t -> string
You can’t perform that action at this time.
0 commit comments