Module Client.TLS
include Httpaf_lwt.Client with type socket = Gluten_lwt_unix.Client.TLS.socket and type runtime = Gluten_lwt_unix.Client.TLS.t
type socket
= Gluten_lwt_unix.Client.TLS.socket
type runtime
= Gluten_lwt_unix.Client.TLS.t
type t
=
{
connection : Httpaf.Client_connection.t;
runtime : runtime;
}
val create_connection : ?config:Httpaf.Config.t -> socket -> t Lwt.t
val request : t -> Httpaf.Request.t -> error_handler:Httpaf.Client_connection.error_handler -> response_handler:Httpaf.Client_connection.response_handler -> [ `write ] Httpaf.Body.t
val shutdown : t -> unit Lwt.t
val is_closed : t -> bool
val upgrade : t -> Gluten.impl -> unit
val create_connection_with_default : ?config:Httpaf.Config.t -> Lwt_unix.file_descr -> t Lwt.t