Page
Library
Module
Module type
Parameter
Class
Class type
Source
Cohttp_lwt_jsoo.Make_client_async
SourceBuild an asynchronous engine with chunked/unchucked response data treated as raw bytes or UTF
In most cases you should use the more specific helper calls in the interface rather than invoke this function directly. See head
, get
and post
for some examples.
include Cohttp.Generic.Client.S
with type 'a io = 'a Lwt.t
and type body = Cohttp_lwt__.Body.t
and type 'a with_context = ?ctx:ctx -> 'a
val call :
(?headers:Http.Header.t ->
?body:body ->
?chunked:bool ->
Http.Method.t ->
Uri.t ->
(Http.Response.t * body) io)
with_context
call ?headers ?body ?chunked meth uri
val delete :
(?body:body ->
?chunked:bool ->
?headers:Http.Header.t ->
Uri.t ->
(Http.Response.t * body) io)
with_context
val post :
(?body:body ->
?chunked:bool ->
?headers:Http.Header.t ->
Uri.t ->
(Http.Response.t * body) io)
with_context
val put :
(?body:body ->
?chunked:bool ->
?headers:Http.Header.t ->
Uri.t ->
(Http.Response.t * body) io)
with_context
val patch :
(?body:body ->
?chunked:bool ->
?headers:Http.Header.t ->
Uri.t ->
(Http.Response.t * body) io)
with_context
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 post_form :
?ctx:ctx ->
?headers:Http.Header.t ->
params:(string * string list) list ->
Uri.t ->
(Http.Response.t * Cohttp_lwt.Body.t) Lwt.t
val callv :
?ctx:ctx ->
Uri.t ->
(Http.Request.t * Cohttp_lwt.Body.t) Lwt_stream.t ->
(Http.Response.t * Cohttp_lwt.Body.t) Lwt_stream.t Lwt.t