Module B0_http.Http

HTTP datatypes.

type method' = [
  1. | `CONNECT
  2. | `DELETE
  3. | `GET
  4. | `HEAD
  5. | `OPTIONS
  6. | `Other of string
  7. | `PATCH
  8. | `POST
  9. | `PUT
  10. | `TRACE
]

The type for HTTP methods.

val method_to_string : method' -> string

method_to_string m is an HTTP method string for m.

type headers = (string * string) list

The type for HTTP headers. List of header names (without the :) tupled with their value.

module Request : sig ... end

HTTP requests.

module Response : sig ... end

HTTP responses.