package ezcurl

  1. Overview
  2. Docs
Friendly wrapper around OCurl

Install

Dune Dependency

Authors

Maintainers

Sources

v0.2.2.tar.gz
md5=75eafead85b6fe5ba2652a4eb580a9a9
sha512=dde8178f2c06adb047b8fcecc8c14bc2c5f9f51748c725c2917f7f5d3faeff385303123eb0213c55d7f2e29dad9e8c88da1b0460fa643cfba958fbe531c097fd

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.