Module Piaf.Client
val create : ?config:Config.t -> Uri.t -> (t, Error.t) Lwt_result.tcreate ?config uriopens a connection touri(initially) that can be used to issue multiple requests to the remote endpoint.A client instance represents a connection to a single remote endpoint, and the remaining functions in this module will issue requests to that endpoint only.
val head : t -> ?headers:(string * string) list -> string -> (Response.t, Error.t) Lwt_result.tval get : t -> ?headers:(string * string) list -> string -> (Response.t, Error.t) Lwt_result.tval post : t -> ?headers:(string * string) list -> ?body:Body.t -> string -> (Response.t, Error.t) Lwt_result.tval put : t -> ?headers:(string * string) list -> ?body:Body.t -> string -> (Response.t, Error.t) Lwt_result.tval patch : t -> ?headers:(string * string) list -> ?body:Body.t -> string -> (Response.t, Error.t) Lwt_result.tval delete : t -> ?headers:(string * string) list -> ?body:Body.t -> string -> (Response.t, Error.t) Lwt_result.tval request : t -> ?headers:(string * string) list -> ?body:Body.t -> meth:Method.t -> string -> (Response.t, Error.t) Lwt_result.tval shutdown : t -> unit Lwt.tshutdown ttears down the connectiontand frees up all the resources associated with it.
module Oneshot : sig ... end