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.