Module B00_http.Http

type meth = [
  1. | `CONNECT
  2. | `DELETE
  3. | `GET
  4. | `HEAD
  5. | `OPTIONS
  6. | `Other of string
  7. | `PATCH
  8. | `POST
  9. | `PUT
  10. | `TRACE
]
val meth_to_string : meth -> string
type headers = (string * string) list
type req
val req : ?headers:headers -> ?body:string -> uri:string -> meth -> req
val req_uri : req -> Uri.t
val req_meth : req -> meth
val req_headers : req -> headers
val req_body : req -> string
type resp
val resp : ?headers:headers -> ?body:string -> int -> resp
val resp_headers : resp -> headers
val resp_status : resp -> int
val resp_body : resp -> string