Module Js_of_ocaml_lwt__Lwt_jsonp
This module provides helpers to perform JSONP calls
val call : ?timeout:float -> ?param:string -> ?prefix:string -> string -> 'b Lwt.t
call ~timeout ~param url
do a jsonp call usingurl
. It uses the named query parameterparam
(default "callback") to pass the name of the callback. It usesprefix
to generate random string for callback name. If a timeout is given and there are no answer beforetimeout
seconds, the lwt thread will be cancelled.