package cohttp-curl-lwt

  1. Overview
  2. Docs
Cohttp client using Curl & Lwt as the backend

Install

Dune Dependency

Authors

Maintainers

Sources

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

doc/cohttp-curl-lwt/Cohttp_curl_lwt/index.html

Module Cohttp_curl_lwtSource

Curl based client

Sourcemodule Sink : sig ... end

A sink defines where the response body may be written

Sourcemodule Source : sig ... end

A source defines where the request body is read from

Sourcemodule Context : sig ... end

A context shares the curl event handling logic for all curl requests associated to it

Sourcemodule Error : sig ... end
Sourcemodule Response : sig ... end

Response for the http requests

Sourcemodule Request : sig ... end

Http requests

Sourceval submit : Context.t -> 'a Request.t -> 'a Response.t

submit ctx request submits a request and returns the response. Once a request is submitted, it may not be submitted again.

OCaml

Innovation. Community. Security.