Example ctx.alpn_select_cb=lambdado|protocols|#inspecttheprotocolsandselectoneprotocols.firstend ca_fileRW
argc,argv,"0:",&opts);ossl_ssl_setup(self);returnossl_start_ssl(self,SSL_accept,"SSL_accept",opts);} alpn_protocol
{alpn_advertised_protocols,[binary()]} 客户端支持的用于应用程序层协议协商%28ALPN%29的协议列表。
listen443sslhttp2;ssl_certificateserver.crt;ssl_certificate_keyserver.key;} 请注意,通过TLS接受HTTP/2连接需要“应用层协议协商”(ALPN
SSLSocket.selected_alpn_protocol() 返回在TLS握手期间选择的协议。
CURLOPT_SSL_ENABLE_ALPNFALSE在SSL握手中禁用ALPN(如果SSL后端libcurl构建为支持它),可用于协商http2。在cURL7.36.0中添加。
DefaultMaxHeaderBytesisused.MaxHeaderBytesint//TLSNextProtooptionallyspecifiesafunctiontotakeover//ownershipoftheprovidedTLSconnectionwhenanNPN/ALPN