Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
The Client
module is a collection of convenience functions for constructing and processing requests.
val set_cache : call -> unit
Provide a function used to process requests. Please see call
. The provided function is only used when no ctx
argument is passed to the convenience functions below.
val call :
?ctx:ctx ->
?headers:Http.Header.t ->
?body:Body.t ->
?chunked:bool ->
Http.Method.t ->
Uri.t ->
(Http.Response.t * Body.t) Lwt.t
call ?ctx ?headers ?body ?chunked meth uri
val head : ?ctx:ctx -> ?headers:Http.Header.t -> Uri.t -> Http.Response.t Lwt.t