Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
HTTP client.
include Cohttp_lwt.S.Client
val sexp_of_ctx : ctx -> Ppx_sexp_conv_lib.Sexp.t
val default_ctx : ctx
val call :
?ctx:ctx ->
?headers:Cohttp.Header.t ->
?body:Cohttp_lwt_body.t ->
?chunked:bool ->
Cohttp.Code.meth ->
Uri.t ->
(Cohttp.Response.t * Cohttp_lwt_body.t) Lwt.t
val head :
?ctx:ctx ->
?headers:Cohttp.Header.t ->
Uri.t ->
Cohttp.Response.t Lwt.t
val get :
?ctx:ctx ->
?headers:Cohttp.Header.t ->
Uri.t ->
(Cohttp.Response.t * Cohttp_lwt_body.t) Lwt.t
val delete :
?ctx:ctx ->
?body:Cohttp_lwt_body.t ->
?chunked:bool ->
?headers:Cohttp.Header.t ->
Uri.t ->
(Cohttp.Response.t * Cohttp_lwt_body.t) Lwt.t
val post :
?ctx:ctx ->
?body:Cohttp_lwt_body.t ->
?chunked:bool ->
?headers:Cohttp.Header.t ->
Uri.t ->
(Cohttp.Response.t * Cohttp_lwt_body.t) Lwt.t
val put :
?ctx:ctx ->
?body:Cohttp_lwt_body.t ->
?chunked:bool ->
?headers:Cohttp.Header.t ->
Uri.t ->
(Cohttp.Response.t * Cohttp_lwt_body.t) Lwt.t
val patch :
?ctx:ctx ->
?body:Cohttp_lwt_body.t ->
?chunked:bool ->
?headers:Cohttp.Header.t ->
Uri.t ->
(Cohttp.Response.t * Cohttp_lwt_body.t) Lwt.t
val post_form :
?ctx:ctx ->
?headers:Cohttp.Header.t ->
params:(string * string list) list ->
Uri.t ->
(Cohttp.Response.t * Cohttp_lwt_body.t) Lwt.t
val callv :
?ctx:ctx ->
Uri.t ->
(Cohttp.Request.t * Cohttp_lwt_body.t) Lwt_stream.t ->
(Cohttp.Response.t * Cohttp_lwt_body.t) Lwt_stream.t Lwt.t
val ctx : Resolver_lwt.t -> Conduit_mirage.t -> ctx