EzcurlSourceinclude module type of struct include Ezcurl_core endConfiguration for the client.
Make a temporary client, call the function with it, then cleanup.
Metadata about a response from the server.
type response = Ezcurl_core.response = {code : int;Response code. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
*)headers : (string * string) list;Response headers
*)body : string;Response body, or ""
info : response_info;Information about the response
*)}Response for a given request.
type meth = Ezcurl_core.meth = | GET| POST of Curl.curlHTTPPost list| PUT| DELETE| HEAD| CONNECT| OPTIONS| TRACE| PATCHThe HTTP method to use
include sig ... endval http :
?tries:int ->
?client:Ezcurl_core.t ->
?config:Ezcurl_core.Config.t ->
?range:string ->
?content:[ `String of string | `Write of bytes -> int -> int ] ->
?headers:(string * string) list ->
url:string ->
meth:Ezcurl_core.meth ->
unit ->
(Ezcurl_core.response, Curl.curlCode * string) result ioval get :
?tries:int ->
?client:Ezcurl_core.t ->
?config:Ezcurl_core.Config.t ->
?range:string ->
?headers:(string * string) list ->
url:string ->
unit ->
(Ezcurl_core.response, Curl.curlCode * string) result ioval put :
?tries:int ->
?client:Ezcurl_core.t ->
?config:Ezcurl_core.Config.t ->
?headers:(string * string) list ->
url:string ->
content:[ `String of string | `Write of bytes -> int -> int ] ->
unit ->
(Ezcurl_core.response, Curl.curlCode * string) result ioval post :
?tries:int ->
?client:Ezcurl_core.t ->
?config:Ezcurl_core.Config.t ->
?headers:(string * string) list ->
?content:[ `String of string | `Write of bytes -> int -> int ] ->
params:Curl.curlHTTPPost list ->
url:string ->
unit ->
(Ezcurl_core.response, Curl.curlCode * string) result io