package ezcurl

  1. Overview
  2. Docs
Friendly wrapper around OCurl

Install

Dune Dependency

Authors

Maintainers

Sources

v0.2.3.tar.gz
md5=f4ca6b30671c23e96fcb33f412a6835c
sha512=417e8854b1457c50cd969502fd1879edfd03a442a7068573a2014826b495711b6c49a1267f022a9d8619404b2a771353453701073a659376a739bb58075cd66d

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.