package picos_io_cohttp
Module Picos_io_cohttp.ClientSource
Convenience functions for constructing requests and processing responses.
Please consult the CoHTTP documentation.
include Cohttp.Generic.Client.S
with type 'a io = 'a
with type 'a with_context = 'a
with type body = Cohttp.Body.t
Source
val call :
(?headers:Http.Header.t ->
?body:body ->
?chunked:bool ->
Http.Method.t ->
Uri.t ->
(Http.Response.t * body) io)
with_contextcall ?headers ?body ?chunked meth uri
Source
val delete :
(?body:body ->
?chunked:bool ->
?headers:Http.Header.t ->
Uri.t ->
(Http.Response.t * body) io)
with_contextSource
val post :
(?body:body ->
?chunked:bool ->
?headers:Http.Header.t ->
Uri.t ->
(Http.Response.t * body) io)
with_contextSource
val put :
(?body:body ->
?chunked:bool ->
?headers:Http.Header.t ->
Uri.t ->
(Http.Response.t * body) io)
with_contextSource
val patch :
(?body:body ->
?chunked:bool ->
?headers:Http.Header.t ->
Uri.t ->
(Http.Response.t * body) io)
with_context