package ez_api
Source file ezCohttp_lwt.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(**************************************************************************) (* *) (* 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 = Cohttp_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 = Base.get ?meth ?headers ?msg url let post ?meth ?content_type ?content ?headers ?msg url = Base.post ?meth ?content_type ?content ?headers ?msg url end include EzRequest_lwt.Make(Interface)