package cohttp-lwt

  1. Overview
  2. Docs
CoHTTP implementation using the Lwt concurrency library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

cohttp-6.1.1.tbz
sha256=6b420c56203b3a0b515964f036bcea0fb9a362876b5791cd7ff50e12366c489c
sha512=839ff6156658ca6d7922e6eed63ebb84dd09c76107790477be55a1ffc4a3800bf49c435147a0ed628f147eaeccff9a8d34565e3787f32c15e187b6e8855f0b93

doc/cohttp-lwt/Cohttp_lwt/index.html

Module Cohttp_lwtSource

Sourcemodule type IO = S.IO
Sourcemodule Request = Cohttp.Request
Sourcemodule Response = Cohttp.Response
Sourcemodule Connection : sig ... end
Sourcemodule Connection_cache : sig ... end
Sourcemodule Client : sig ... end

The Make functor glues together a Cohttp.S.IO implementation to send requests down a connection that is established by the Net module. The resulting module satisfies the Client module type.

Sourcemodule Server : sig ... end

The Make functor glues together a Cohttp.S.IO implementation to send requests down a connection that is established by the user. The resulting module satisfies the Server module type.

Sourcemodule Make_client (IO : IO) (Net : S.Net with module IO = IO) : sig ... end
Sourcemodule Make_server = Server.Make
Sourcemodule S : sig ... end

Portable Lwt implementation of HTTP client and server, without depending on a particular I/O implementation. The various Make functors must be instantiated by an implementation that provides a concrete IO monad.

Sourcemodule Body : sig ... end
Sourcemodule Private : sig ... end