package conduit

  1. Overview
  2. Docs
A network connection establishment library

Install

Dune Dependency

Authors

Maintainers

Sources

conduit-6.1.0.tbz
sha256=a2e29088630bbef92c1a902192a09548ab4a6b3f75a7eee6722426eca1efc05f
sha512=308041a9cccf5b01827365ae9e75915bf33c812658ff1a802b275827f4c9af98dd991df9106a5b8d70374cc0d41398621bbafd8de829acfef4cb86e6b9523712

doc/conduit/Resolver/index.html

Module ResolverSource

Resolve URIs to endpoints

Sourcetype service = {
  1. name : string;
  2. port : int;
  3. tls : bool;
}

Description of a single service. Can be populated from /etc/services with the exception of the tls field, which indicates if the connection is intended to be TLS/SSL-encrypted or not (e.g. for https).

Sourceval sexp_of_service : service -> Sexplib0.Sexp.t
Sourceval service_of_sexp : Sexplib0.Sexp.t -> service
Sourcemodule type S = sig ... end

Module type for a resolver that can map URIs to concrete endpoints that stream connections can be established with.

Sourcemodule Make (IO : Conduit.IO) : S with type svc = service and type 'a io = 'a IO.t

Functor to construct a concrete resolver using a Conduit.IO implementation, usually via either Lwt or Async

OCaml

Innovation. Community. Security.