Diff

plugins/mod_http.lua @ 10465:09697a673015

mod_net_multiplex: Add support for using ALPN Potentially a bit more efficient since it can jump to the selected protocol on connect instead of waiting for some data to look at. Adds a 'protocol' field to net providers for this purpose.
author Kim Alvefur <zash@zash.se>
date Fri, 29 Nov 2019 23:27:51 +0100
parent 10460:5ce6cbb5ce6a
child 10840:a83bfb266b15
line wrap: on
line diff
--- a/plugins/mod_http.lua	Fri Nov 29 23:25:59 2019 +0100
+++ b/plugins/mod_http.lua	Fri Nov 29 23:27:51 2019 +0100
@@ -242,6 +242,7 @@
 	default_port = 5281;
 	encryption = "ssl";
 	multiplex = {
+		protocol = "http/1.1";
 		pattern = "^[A-Z]";
 	};
 });