Ezcurl_coreSourceCore signatures and implementation
A client, i.e. a cURL instance. The wrapping record has been present since 0.3
val make :
?set_opts:(Curl.t -> unit) ->
?cookiejar_file:string ->
?enable_session_cookies:bool ->
unit ->
tCreate a new client.
Make a temporary client, call the function with it, then cleanup.
Set no_signal default value for each new client instance. Default is true. See CURLOPT_NOSIGNAL.
Metadata about a response from the server.
type 'body response = {code : int;Response code. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
*)headers : (string * string) list;Response headers
*)body : 'body;Response body, or ""
info : response_info;Information about the response
*)}Response for a given request.
val pp_response_with :
(Format.formatter -> 'a -> unit) ->
Format.formatter ->
'a response ->
unittype meth = | GET| POST of Curl.curlHTTPPost list| PUT| DELETE| HEAD| CONNECT| OPTIONS| TRACE| PATCHThe HTTP method to use