Hcs.Tls_config.Server

hcs · API reference

type t = {
  cert_file : string;
  key_file : string;
  alpn_protocols : string list option;
}
val with_alpn : string list -> t -> t
val h1_only : t -> t
val h2_only : t -> t
val h2_or_http11 : t -> t
val of_pem : cert_file:string -> key_file:string -> (t, string) result
val to_ssl_context : t -> (Ssl.context, string) result
val wrap_flow : 
  t ->
  Eio_unix.Net.stream_socket_ty Eio.Net.stream_socket ->
  (Eio_ssl.t * Eio_ssl.Context.t, string) result