dream-httpaf.dream-h2-lwt
H2_lwt.Client
dream-httpaf
dream-httpaf.dream-gluten
dream-httpaf.dream-gluten-lwt
dream-httpaf.dream-gluten-lwt-unix
dream-httpaf.dream-h2
dream-httpaf.dream-h2-lwt-unix
dream-httpaf.dream-hpack
dream-httpaf.dream-httpaf_
dream-httpaf.dream-httpaf_-lwt
dream-httpaf.dream-httpaf_-lwt-unix
dream-httpaf.dream-websocketaf
dream-httpaf.dream-websocketaf-lwt
dream-httpaf.dream-websocketaf-lwt-unix
module Client_runtime : Gluten_lwt.Client
module H2 = Dream_h2.H2
type socket = Client_runtime.socket
type runtime = Client_runtime.t
type t = {
connection : H2.Client_connection.t;
runtime : runtime;
}
val create_connection : ?config:Dream_h2.H2.Config.t -> ?push_handler: (Dream_h2.H2.Request.t -> (Dream_h2.H2.Client_connection.response_handler, unit) result) -> error_handler:Dream_h2.H2.Client_connection.error_handler -> socket -> t Lwt.t
val request : t -> ?flush_headers_immediately:bool -> ?trailers_handler:Dream_h2.H2.Client_connection.trailers_handler -> Dream_h2.H2.Request.t -> error_handler:Dream_h2.H2.Client_connection.error_handler -> response_handler:Dream_h2.H2.Client_connection.response_handler -> Dream_h2.H2.Body.Writer.t
val ping : ?payload:Bigstringaf.t -> ?off:int -> t -> (unit, [ `EOF ]) result Lwt.t
val shutdown : t -> unit Lwt.t
val is_closed : t -> bool