package h2-async

  1. Overview
  2. Docs

Module Client.TLSSource

Sourcetype 'a runtime constraint 'a = [< Async.Socket.Address.t ]
Sourcetype 'a t = {
  1. connection : H2.Client_connection.t;
  2. runtime : 'a 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 -> 'a socket -> 'a t Async.Deferred.t
Sourceval request : 'a 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 : _ t -> ?payload:Bigstringaf.t -> ?off:int -> ((unit, [ `EOF ]) result -> unit) -> unit
Sourceval shutdown : _ t -> unit Async.Deferred.t
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 -> ([ `Unconnected ], 'addr) Async.Socket.t -> 'addr Async.Tcp.Where_to_connect.t -> 'addr t Async.Deferred.t
OCaml

Innovation. Community. Security.