package async-uri

All checked builds pass
  1. Overview
  2. Docs
Open Async (TLS) TCP connections with Uri.t

Install

dune-project
 Dependency

Authors

Maintainers

Sources

async-uri-0.5.0.tbz
sha256=5a4c554a0f78c11c60dd5c13f030b4816f7718b34ed9f0f9d6172bf55605de6f
sha512=78788547d3d02a95486ac457f0ad2558a42d89275e134e5f4382cc75c3ddc0fb06f92cdfcf099dbca05311513da3052709d9d2b8a1da2207eed1d99ad0e6f76f

doc/async-uri/Async_uri/index.html

Module Async_uriSource

Sourcetype t = {
  1. s : ([ `Active ], Async.Socket.Address.Inet.t) Async.Socket.t;
  2. ssl : Async_ssl.Std.Ssl.Connection.t option;
  3. r : Async.Reader.t;
  4. w : Async.Writer.t;
}
Sourceval is_tls_url : Uri.t -> bool
Sourceval connect : ?version:Async_ssl.Version.t -> ?options:Async_ssl.Opt.t list -> ?ca_file:string -> ?socket:([ `Unconnected ], Async.Socket.Address.Inet.t) Async.Socket.t -> ?buffer_age_limit:[ `At_most of Core.Time_float.Span.t | `Unlimited ] -> ?interrupt:unit Async.Deferred.t -> ?reader_buffer_size:int -> ?writer_buffer_size:int -> ?timeout:Core.Time_ns.Span.t -> ?time_source:Async.Time_source.t -> Uri.t -> t Async.Deferred.t

For a TLS URL, the server's certificate must chain to a trusted root (ca_file when given, the system store otherwise) and be valid for the URL's host. A URL with no host is refused. A certificate's IP addresses are not matched, so a TLS URL whose host is an IP fails.

Sourceval with_connection : ?version:Async_ssl.Version.t -> ?options:Async_ssl.Opt.t list -> ?ca_file:string -> ?buffer_age_limit:[ `At_most of Core.Time_float.Span.t | `Unlimited ] -> ?interrupt:unit Async.Deferred.t -> ?reader_buffer_size:int -> ?writer_buffer_size:int -> ?timeout:Core.Time_ns.Span.t -> ?time_source:Async.Time_source.t -> Uri.t -> (t -> 'a Async.Deferred.t) -> 'a Async.Deferred.t
Sourcemodule Persistent : Persistent_connection_kernel.S with type conn := t
Sourceval listen_ssl : ?version:Async_ssl.Version.t -> ?options:Async_ssl.Opt.t list -> ?name:string -> ?allowed_ciphers:[ `Only of string list | `Openssl_default | `Secure ] -> ?ca_file:string -> ?ca_path:string -> ?verify_modes:Async_ssl.Verify_mode.t list -> crt_file:string -> key_file:string -> ?buffer_age_limit:Async.Writer.buffer_age_limit -> ?max_connections:int -> ?max_accepts_per_batch:int -> ?backlog:int -> ?socket:([ `Unconnected ], [< Async.Socket.Address.t ] as 'a) Async.Socket.t -> on_handler_error:[ `Call of 'a -> exn -> unit | `Ignore | `Raise ] -> ('a, 'b) Async.Tcp.Where_to_listen.t -> ('a -> Async_ssl.Std.Ssl.Connection.t -> Async.Reader.t -> Async.Writer.t -> unit Async.Deferred.t) -> ('a, 'b) Async.Tcp.Server.t Async.Deferred.t
Sourceval connect_rpc : ?implementations:Async.Rpc.Connection.Client_implementations.t -> ?heartbeat_config:Async.Rpc.Connection.Heartbeat_config.t -> ?identification:Core.Bigstring.t -> Uri.t -> Async.Rpc.Connection.t Async.Deferred.Or_error.t