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 -> tval h1_only : t -> tval h2_only : t -> tval h2_or_http11 : t -> tval of_pem : cert_file:string -> key_file:string -> (t, string) resultval to_ssl_context : t -> (Ssl.context, string) resultval wrap_flow :
t ->
Eio_unix.Net.stream_socket_ty Eio.Net.stream_socket ->
(Eio_ssl.t * Eio_ssl.Context.t, string) result