package b0

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module B0_http.HttpSource

HTTP datatypes.

Sourcetype 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.

Sourceval method_to_string : method' -> string

method_to_string m is an HTTP method string for m.

Sourcetype headers = (string * string) list

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

Sourcemodule Request : sig ... end

HTTP requests.

Sourcemodule Response : sig ... end

HTTP responses.