123456789101112131415161718192021222324252627282930(**************************************************************************)(* *)(* 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. *)(* *)(**************************************************************************)moduleBase=EzCohttp_base.Make(Cohttp_lwt_unix.Client)let()=letcbv=ifvland4<>0thenCohttp_lwt_unix.Debug.activate_debug()inVerbose.callback:=cb;cb!Verbose.vmoduleInterface=structletget?meth?headers?msgurlf=Lwt.async@@fun()->Lwt.mapf(Base.get?meth?headers?msgurl)letpost?meth?content_type?content?headers?msgurlf=Lwt.async@@fun()->Lwt.mapf(Base.post?meth?content_type?content?headers?msgurl)endincludeEzRequest.Make(Interface)