package cohttp

  1. Overview
  2. Docs

HTTP client and server using the Lwt_unix interfaces.

Request and Response modules

module Request : Cohttp.S.Request with type t = Cohttp.Request.t

The Request module holds the information about a HTTP request

module Response : Cohttp.S.Response with type t = Cohttp.Response.t

The Response module holds the information about a HTTP response.

Module types for Client and Server

The Client module type defines the additional UNIX-specific functions that are exposed in addition to the Cohttp_lwt.Client interface.

This module type defines the additional UNIX-specific functions that are exposed in addition to the Cohttp_lwt.Server interface. These are primarily filesystem functions, and also create to actually bind the server to a socket and respond to incoming requests.

Lwt-Unix Client and Server implementations

module Client : sig ... end

The Client module implements the full UNIX HTTP client interface, including the UNIX-specific functions defined in C.

module Server : sig ... end

The Server module implements the full UNIX HTTP server interface, including the UNIX-specific functions defined in S.

OCaml

Innovation. Community. Security.