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.2.4.tbz
sha256=26eda208be72d746eafbfe47f264850ae619e811b8c3165e7684d7a9295541a1
sha512=841d88cd4e7e6449cf17dc4626533856a13c81f96e81305be4773a0d2e5eba524950cd5280da6ff6390c386823c1bdbe671d946f643d26c2ea600b4b1cd66531
doc/ezcurl/Ezcurl/index.html
Module EzcurlSource
Synchronous API
include module type of struct include Ezcurl_core end
Configuration for the client.
Make a temporary client, call the function with it, then cleanup.
Metadata about a response from the server.
Source
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.
Source
type meth = Ezcurl_core.meth = | GET| POST of Curl.curlHTTPPost list| PUT| DELETE| HEAD| CONNECT| OPTIONS| TRACE| PATCH
The HTTP method to use
include sig ... end
Source
val 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 ioSource
val 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 ioSource
val 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 ioSource
val 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 sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page