package ezcurl
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Friendly wrapper around OCurl
Install
dune-project
Dependency
Authors
Maintainers
Sources
ezcurl-0.4.tbz
sha256=25575d5f0e9d5712ae115f002b2d783a13780653b883846ba8141022d809afa3
sha512=1dee9be6d53d15243977bdb1d2fdc5933735617b0d67ed2a41857e83815c02f08f94eadab6a1fc0a3a693bab7c0ed89ec1fbd186b6b810b0463d029a100e7dec
doc/ezcurl.core/Ezcurl_core/Make/index.html
Module Ezcurl_core.MakeSource
Parameters
Signature
Source
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 ->
(string response, Curl.curlCode * string) result ioGeneral purpose HTTP call via cURL.
Push-based stream of bytes
Source
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) 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.
Source
val get :
?tries:int ->
?client:t ->
?config:Config.t ->
?range:string ->
?headers:(string * string) list ->
url:string ->
unit ->
(string response, Curl.curlCode * string) result ioShortcut for http ~meth:GET See http for more info.
Source
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) result ioShortcut for http ~meth:PUT See http for more info.
Source
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) result ioShortcut for http ~meth:(POST params) See http for more info.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page