package conduit

  1. Overview
  2. Docs
A network connection establishment library

Install

Dune Dependency

Authors

Maintainers

Sources

conduit-6.2.2.tbz
sha256=58eabf878fe2a5612f5a4f2b484ff749a5febbea3b3ceeb9af43ac235f2b2445
sha512=ab8ee5c2b9d879869181d5dfe111aefeefaa10063d89f21d5fc6023e8a7b83738b246dcadce7d583f5b8e918026cdb73cc66b32a8d5c2f874966fa37d5e67719

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.