package conduit-async

  1. Overview
  2. Docs
type allowed_ciphers = [
  1. | `Only of string list
  2. | `Openssl_default
  3. | `Secure
]
val sexp_of_allowed_ciphers : allowed_ciphers -> Ppx_sexp_conv_lib.Sexp.t
val allowed_ciphers_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> allowed_ciphers
val __allowed_ciphers_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t -> allowed_ciphers
type ssl_version = Async_ssl.Ssl.Version.t
val sexp_of_ssl_version : ssl_version -> Ppx_sexp_conv_lib.Sexp.t
val ssl_version_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> ssl_version
val sexp_of_session : session -> Ppx_sexp_conv_lib.Sexp.t
type verify_mode = Async_ssl.Ssl.Verify_mode.t
val sexp_of_verify_mode : verify_mode -> Ppx_sexp_conv_lib.Sexp.t
type ssl_opt = Async_ssl.Ssl.Opt.t
val sexp_of_ssl_opt : ssl_opt -> Ppx_sexp_conv_lib.Sexp.t
val ssl_opt_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> ssl_opt
val sexp_of_ssl_conn : ssl_conn -> Ppx_sexp_conv_lib.Sexp.t
module Ssl : sig ... end
val sexp_of_addr : ('a__001_ -> Ppx_sexp_conv_lib.Sexp.t) -> 'a__001_ addr -> Ppx_sexp_conv_lib.Sexp.t
val connect : ?interrupt:unit Async.Deferred.t -> 'a addr -> ('a tcp_sock * Async.Reader.t * Async.Writer.t) Async.Deferred.t
val with_connection : ?interrupt:unit Async.Deferred.t -> 'a addr -> ('a tcp_sock -> Async.Reader.t -> Async.Writer.t -> 'b Async.Deferred.t) -> 'b Async.Deferred.t
type trust_chain = [
  1. | `Ca_file of string
  2. | `Ca_path of string
  3. | `Search_file_first_then_path of [ `File of string ] * [ `Path of string ]
]
val sexp_of_trust_chain : trust_chain -> Ppx_sexp_conv_lib.Sexp.t
val trust_chain_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> trust_chain
val __trust_chain_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t -> trust_chain
type openssl = [
  1. | `OpenSSL of [ `Crt_file_path of string ] * [ `Key_file_path of string ]
]
val sexp_of_openssl : openssl -> Ppx_sexp_conv_lib.Sexp.t
val openssl_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> openssl
val __openssl_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t -> openssl
type server = [
  1. | openssl
  2. | `TCP
  3. | `OpenSSL_with_trust_chain of openssl * trust_chain
]
val sexp_of_server : server -> Ppx_sexp_conv_lib.Sexp.t
val server_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> server
val __server_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t -> server
val serve : ?max_connections:int -> ?backlog:int -> ?buffer_age_limit:Async.Writer.buffer_age_limit -> on_handler_error: [ `Call of [< Async.Socket.Address.t ] as 'a -> exn -> unit | `Ignore | `Raise ] -> server -> ('a, 'b) Async.Tcp.Where_to_listen.t -> ('a -> Async.Reader.t -> Async.Writer.t -> unit Async.Deferred.t) -> ('a, 'b) Async.Tcp.Server.t Async.Deferred.t
OCaml

Innovation. Community. Security.