Hcs.Tls_config.Client

hcs · API reference

type verification = 
  | System_certs
  | No_verify
type t = {
  verification : verification;
  alpn_protocols : string list option;
}
val default : t
val h2 : t
val h2_or_http11 : t
val with_alpn : string list -> t -> t
val insecure : t
val insecure_h2 : t
val to_ssl_context : t -> host:'a -> (Ssl.context, string) result
val wrap_flow : 
  t ->
  host:string ->
  Eio_unix.Net.stream_socket_ty Eio.Net.stream_socket ->
  (Eio_ssl.t, string) result