package devkit
Module Devkit_core.Httpev_commonSource
Source
type request = {addr : Unix.sockaddr;url : string;path : string;args : (string * string) list;conn : Time.t;recv : Time.t;meth : meth;headers : (string * string) list;body : string;version : int * int;id : int;socket : Unix.file_descr;line : string;(*request line
*)mutable blocking : unit IO.output option;encoding : encoding;
}Source
type status_code = [ | `Ok| `Created| `Accepted| `No_content| `Found| `Moved| `Permanent_redirect| `Bad_request| `Payment_required| `Forbidden| `Not_found| `Method_not_allowed| `Not_acceptable| `Conflict| `Length_required| `Request_too_large| `I'm_a_teapot| `Unprocessable_content| `Too_many_requests| `Internal_server_error| `Not_implemented| `Version_not_supported
]Source
val method_of_string :
string ->
[> `DELETE | `GET | `HEAD | `OPTIONS | `PATCH | `POST | `PUT ]