package happy-eyeballs-mirage

  1. Overview
  2. Docs
module Transport : Dns_client.S with type io_addr = [ `Plaintext of Ipaddr.t * int | `Tls of Tls.Config.client * Ipaddr.t * int ] and type +'a io = 'a Lwt.t
type t
type dns
type flow
val create : ?happy_eyeballs:Happy_eyeballs.t -> ?dns:dns -> ?timer_interval:int64 -> Transport.stack -> t
val connect_host : t -> [ `host ] Domain_name.t -> int list -> ((Ipaddr.t * int) * flow, [> `Msg of string ]) Stdlib.result Lwt.t
val connect_ip : t -> (Ipaddr.t * int) list -> ((Ipaddr.t * int) * flow, [> `Msg of string ]) Stdlib.result Lwt.t
val connect : t -> string -> int list -> ((Ipaddr.t * int) * flow, [> `Msg of string ]) Stdlib.result Lwt.t