package happy-eyeballs-mirage

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a io = 'a Lwt.t
type io_addr = [
  1. | `Plaintext of Ipaddr.t * int
  2. | `Tls of Tls.Config.client * Ipaddr.t * int
]
type stack = S.t
val create : ?nameservers:(Dns.proto * io_addr list) -> timeout:int64 -> stack -> t
val nameservers : t -> Dns.proto * io_addr list
val rng : int -> Cstruct.t
val clock : unit -> int64
val connect : t -> (context, [> `Msg of string ]) Stdlib.result io
val send_recv : context -> Cstruct.t -> (Cstruct.t, [> `Msg of string ]) Stdlib.result io
val close : context -> unit io
val bind : 'a io -> ('a -> 'b io) -> 'b io
val lift : 'a -> 'a io
OCaml

Innovation. Community. Security.