package h2-async

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type runtime
type t = {
  1. connection : H2.Client_connection.t;
  2. runtime : runtime;
}
val create_connection : ?config:H2.Config.t -> ?push_handler: (H2.Request.t -> (H2.Client_connection.response_handler, unit) Stdlib.result) -> error_handler:H2.Client_connection.error_handler -> socket -> t Async.Deferred.t
val 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
val ping : t -> ?payload:Bigstringaf.t -> ?off:int -> (unit -> unit) -> unit
val shutdown : t -> unit Async.Deferred.t
val is_closed : t -> bool
val create_connection_with_default : ?config:H2.Config.t -> ?push_handler: (H2.Request.t -> (H2.Client_connection.response_handler, unit) Stdlib.result) -> error_handler:H2.Client_connection.error_handler -> ([ `Active ], [< Async.Socket.Address.t ]) Async.Socket.t -> t Async.Deferred.t
OCaml

Innovation. Community. Security.