pub fn create_tls_acceptor_with_http2(
cert_path: &str,
key_path: &str,
enable_http2: bool,
) -> WaeResult<TlsAcceptor>Expand description
创建支持 HTTP/2 的 TLS 接受器
从 PEM 格式的证书和私钥文件创建 TLS 接受器, 支持 HTTP/1.1 和 HTTP/2 的 ALPN 协商。
参数:
cert_path: 证书文件路径key_path: 私钥文件路径enable_http2: 是否启用 HTTP/2 支持