Library
Module
Module type
Parameter
Class
Class type
type 'a io = 'a IO.t
val 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 ->
(response, Curl.curlCode * string) Stdlib.result io
General purpose HTTP call via cURL.
val get :
?tries:int ->
?client:t ->
?config:Config.t ->
?range:string ->
?headers:(string * string) list ->
url:string ->
unit ->
(response, Curl.curlCode * string) Stdlib.result io
Shortcut 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 ->
(response, Curl.curlCode * string) Stdlib.result io
Shortcut 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 ->
(response, Curl.curlCode * string) Stdlib.result io
Shortcut for http ~meth:(POST params)
See http
for more info.