package mirage-conduit

  1. Overview
  2. Docs

Provides a DNS-enabled Resolver_lwt given a network stack. See Make.

Parameters

module T : Mirage_time_lwt.S
module S : Mirage_stack_lwt.V4

Signature

include Resolver_lwt.S with type t = Resolver_lwt.t
type 'a io = 'a Lwt.t
type t = Resolver_lwt.t
val t_of_sexp : Sexplib0.Sexp.t -> t
val sexp_of_t : t -> Sexplib0.Sexp.t
type svc = Resolver.service
val sexp_of_svc : svc -> Ppx_sexp_conv_lib.Sexp.t
val svc_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> svc
type rewrite_fn = svc -> Uri.t -> Conduit.endp io
type service_fn = string -> svc option io
val init : ?service:service_fn -> ?rewrites:(string * rewrite_fn) list -> unit -> t
val add_rewrite : host:string -> f:rewrite_fn -> t -> unit
val set_service : f:service_fn -> t -> unit
val service : t -> service_fn
val resolve_uri : ?rewrites:(string * rewrite_fn) list -> uri:Uri.t -> t -> Conduit.endp io
module R : S with type DNS.stack = S.t
OCaml

Innovation. Community. Security.