Ezcurl_core.Maketype 'a io = 'a IO.tval http :
?tries:int ->
?client:t ->
?config:Config.t ->
?range:string ->
?content:[ `String of string | `Write of bytes -> int -> int ] ->
?headers:(string * string) list ->
url:string ->
meth:meth ->
unit ->
(string response, Curl.curlCode * string) Stdlib.result ioGeneral purpose HTTP call via cURL.
class type input_stream = object ... endPush-based stream of bytes
val http_stream :
?tries:int ->
?client:t ->
?config:Config.t ->
?range:string ->
?content:[ `String of string | `Write of bytes -> int -> int ] ->
?headers:(string * string) list ->
url:string ->
meth:meth ->
write_into:input_stream ->
unit ->
(unit response, Curl.curlCode * string) Stdlib.result ioHTTP call via cURL, with a streaming response body. The body is given to write_into by chunks, then write_into#on_close () is called and the response is returned.
val get :
?tries:int ->
?client:t ->
?config:Config.t ->
?range:string ->
?headers:(string * string) list ->
url:string ->
unit ->
(string response, Curl.curlCode * string) Stdlib.result ioShortcut for http ~meth:GET See http for more info.
val put :
?tries:int ->
?client:t ->
?config:Config.t ->
?headers:(string * string) list ->
url:string ->
content:[ `String of string | `Write of bytes -> int -> int ] ->
unit ->
(string response, Curl.curlCode * string) Stdlib.result ioShortcut for http ~meth:PUT See http for more info.
val post :
?tries:int ->
?client:t ->
?config:Config.t ->
?headers:(string * string) list ->
?content:[ `String of string | `Write of bytes -> int -> int ] ->
params:Curl.curlHTTPPost list ->
url:string ->
unit ->
(string response, Curl.curlCode * string) Stdlib.result ioShortcut for http ~meth:(POST params) See http for more info.