package cohttp-lwt

  1. Overview
  2. Docs

Parameters

module IO : IO
module Net : S.Net with module IO = IO

Signature

val set_cache : (?headers:Http.Header.t -> ?body:Body.t -> Http.Method.t -> Uri.t -> (Cohttp.Response.t * Body.t) Lwt.t) -> unit
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
val head : ?ctx:ctx -> ?headers:Http.Header.t -> Uri.t -> Http.Response.t Lwt.t
val get : ?ctx:ctx -> ?headers:Http.Header.t -> Uri.t -> (Http.Response.t * Body.t) Lwt.t
val delete : ?ctx:ctx -> ?body:Body.t -> ?chunked:bool -> ?headers:Http.Header.t -> Uri.t -> (Http.Response.t * Body.t) Lwt.t
val post : ?ctx:ctx -> ?body:Body.t -> ?chunked:bool -> ?headers:Http.Header.t -> Uri.t -> (Http.Response.t * Body.t) Lwt.t
val put : ?ctx:ctx -> ?body:Body.t -> ?chunked:bool -> ?headers:Http.Header.t -> Uri.t -> (Http.Response.t * Body.t) Lwt.t
val patch : ?ctx:ctx -> ?body:Body.t -> ?chunked:bool -> ?headers:Http.Header.t -> Uri.t -> (Http.Response.t * Body.t) Lwt.t
val post_form : ?ctx:ctx -> ?headers:Http.Header.t -> params:(string * string list) list -> Uri.t -> (Http.Response.t * Body.t) Lwt.t
OCaml

Innovation. Community. Security.