package shuttle_http

  1. Overview
  2. Docs
type t
val sexp_of_t : t -> Sexplib0.Sexp.t
val create : ?version:Async_ssl.Version.t -> ?options:Async_ssl.Opt.t list -> ?name:string -> ?hostname:string -> ?allowed_ciphers:[ `Only of string list | `Openssl_default | `Secure ] -> ?ca_file:string -> ?ca_path:string -> ?crt_file:string -> ?key_file:string -> ?verify_modes:Async_ssl.Verify_mode.t list -> ?session:Async_ssl.Ssl.Session.t -> ?verify_certificate:(Shuttle_ssl.ssl_connection -> unit Core.Or_error.t) -> unit -> t

ssl options that should be used when using a client over an encrypted connection. This can be used either when sending a one-shot request, or when creating a client that supports keep-alive. If hostname is provided it'll be used for validating that the hostname in the peer's ssl certificate matches the hostname requested by the client.