package ezcurl

  1. Overview
  2. Docs
Friendly wrapper around OCurl

Install

Dune Dependency

Authors

Maintainers

Sources

v0.1.tar.gz
md5=e2213c3b66680ebaa4572660b8de4756
sha512=b40824b7a4d38b7082884f265918b4100a1492548ca37d1b495bffee15ea6743e3557d70b524a3a56a7c4504678becc16a3f40e7d5054c3d81ec2ee831f4adda

doc/ezcurl.core/Ezcurl_core/index.html

Module Ezcurl_coreSource

Core signatures and implementation

Sourcemodule Config : sig ... end
Sourcetype t = Curl.t
Sourceval make : ?set_opts:(t -> unit) -> unit -> t
Sourceval delete : t -> unit
Sourceval with_client : ?set_opts:(t -> unit) -> (t -> 'a) -> 'a

Make a temporary client, call the function with it, then cleanup

Sourcetype response_info = {
  1. ri_response_time : float;
  2. ri_redirect_count : int;
}
Sourceval pp_response_info : Format.formatter -> response_info -> unit
Sourceval string_of_response_info : response_info -> string
Sourcetype response = {
  1. code : int;
  2. headers : (string * string) list;
  3. body : string;
  4. info : response_info;
}
Sourceval pp_response : Format.formatter -> response -> unit
Sourceval string_of_response : response -> string
Sourcetype meth =
  1. | GET
  2. | POST of Curl.curlHTTPPost list
  3. | PUT
  4. | DELETE
  5. | HEAD
  6. | CONNECT
  7. | OPTIONS
  8. | TRACE
  9. | PATCH

The HTTP method to use

Sourceval pp_meth : Format.formatter -> meth -> unit
Sourceval string_of_meth : meth -> string
Sourcemodule type IO = sig ... end
Sourcemodule type S = sig ... end
Sourcemodule Make (IO : IO) : S with type 'a io = 'a IO.t
OCaml

Innovation. Community. Security.