Hcs.Tls_config.Server

hcs · API reference

type t = {
  certificate : Tls.Config.own_cert;
  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_tls_config : t -> (Tls.Config.server, [> `Msg of string ]) result

Create Tls.Config.server from our config