package h2-lwt-unix

  1. Overview
  2. Docs

Module Client.TLSSource

include H2_lwt.Client with type socket = [ `Tls_not_available ]
Sourcetype t
Sourcetype socket = [
  1. | `Tls_not_available
]
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 create_h2c_connection : ?config:H2.Config.t -> ?push_handler: (H2.Request.t -> (H2.Client_connection.response_handler, unit) result) -> http_request:Httpaf.Request.t -> error_handler:H2.Client_connection.error_handler -> (H2.Client_connection.response_handler * H2.Client_connection.error_handler) -> socket -> (t, string) result Lwt.t
Sourceval request : t -> H2.Request.t -> error_handler:H2.Client_connection.error_handler -> response_handler:H2.Client_connection.response_handler -> [ `write ] H2.Body.t
Sourceval ping : t -> ?payload:Bigstringaf.t -> ?off:int -> (unit -> unit) -> unit
Sourceval shutdown : t -> unit
Sourceval is_closed : t -> bool
Sourceval create_connection_with_default : ?config:H2.Config.t -> ?push_handler: (H2.Request.t -> (H2.Client_connection.response_handler, unit) result) -> error_handler:H2.Client_connection.error_handler -> Lwt_unix.file_descr -> t Lwt.t