package paf

  1. Overview
  2. Docs
val scheme : [ `HTTP | `HTTPS ] Mimic.value
val port : int Mimic.value
val domain_name : [ `host ] Domain_name.t Mimic.value
val ipaddr : Ipaddr.t Mimic.value
val sleep : (int64 -> unit Lwt.t) Mimic.value
val with_uri : Uri.t -> Mimic.ctx -> Mimic.ctx
include Cohttp_lwt.S.Client with type ctx = Mimic.ctx
type ctx = Mimic.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
OCaml

Innovation. Community. Security.