package ez_api
Easy API library and tools
Install
Dune Dependency
Authors
Maintainers
Sources
2.1.0.tar.gz
md5=e1d03d141ef977fbd4521256c91431f1
sha512=51b0cc4e6afb0cd5ab55c0c40964946b79e0c2cc903b5d08c594292eec723a25e25463175d704c02fe559e2af5d95973514c248a603ad28ec0230c35ad2d6492
doc/src/ez_api.cohttp/ezCohttp.ml.html
Source file ezCohttp.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
(**************************************************************************) (* *) (* Copyright 2018-2022 OCamlPro *) (* *) (* All rights reserved. This file is distributed under the terms of the *) (* GNU Lesser General Public License version 2.1, with the special *) (* exception on linking described in the file LICENSE. *) (* *) (**************************************************************************) module Base = EzCohttp_base.Make(Cohttp_lwt_unix.Client) let () = let cb v = if v land 4 <> 0 then Cohttp_lwt_unix.Debug.activate_debug () in Verbose.callback := cb; cb !Verbose.v module Interface = struct let get ?meth ?headers ?msg url f = Lwt.async @@ fun () -> Lwt.map f (Base.get ?meth ?headers ?msg url) let post ?meth ?content_type ?content ?headers ?msg url f = Lwt.async @@ fun () -> Lwt.map f (Base.post ?meth ?content_type ?content ?headers ?msg url) end include EzRequest.Make(Interface)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>