B00_http.HttpHTTP methods, requests and responses.
type meth = [ | `CONNECT |
| `DELETE |
| `GET |
| `HEAD |
| `OPTIONS |
| `Other of string |
| `PATCH |
| `POST |
| `PUT |
| `TRACE |
]The type for HTTP methods.
val meth_to_string : meth -> stringmeth_to_string m is a string representation of m.
The type for HTTP headers. List of header names (without the :) tupled with their value.
req uri m ~headers ~body is a request on uri with method m, headers headers (defaults to []) and body body (defaults to "").
val req_body : req -> stringreq_body r is r's body.
resp status ~headers ~body is a response with status status, headers headers (defaults to []) and body body (defaults to "")
val resp_status : resp -> intresp_status r is the HTTP response status.
val resp_body : resp -> stringresp_body r is the HTTP response body.