package h2-lwt-unix

  1. Overview
  2. Docs

Module H2_lwt_unix.ClientSource

include H2_lwt.Client with type socket = Lwt_unix.file_descr and type runtime = Gluten_lwt_unix.Client.t
Sourcetype t = {
  1. connection : H2.Client_connection.t;
  2. runtime : runtime;
}
Sourceval create_connection : ?config:H2.Config.t -> ?push_handler: (H2.Request.t -> (H2.Client_connection.response_handler, unit) result) -> error_handler:H2.Client_connection.error_handler -> socket -> t Lwt.t
Sourceval request : t -> ?flush_headers_immediately:bool -> ?trailers_handler:H2.Client_connection.trailers_handler -> H2.Request.t -> error_handler:H2.Client_connection.error_handler -> response_handler:H2.Client_connection.response_handler -> H2.Body.Writer.t
Sourceval ping : ?payload:Bigstringaf.t -> ?off:int -> t -> (unit, [ `EOF ]) result Lwt.t
Sourceval shutdown : t -> unit Lwt.t
Sourceval is_closed : t -> bool
Sourcemodule TLS : sig ... end
Sourcemodule SSL : sig ... end