* Restconf native HTTP/2:

* Added option `CLICON_RESTCONF_HTTP2_PLAIN`
    * if disabled non-tls HTTP/2 is disabled: both direct and upgrade
This commit is contained in:
Olof hagsand 2021-08-26 16:58:52 +02:00
parent 562320dcbc
commit ef4d082f4b
6 changed files with 240 additions and 5 deletions

View file

@ -47,6 +47,7 @@ module clixon-config {
description
"Added option:
CLICON_SYSTEM_CAPABILITIES
CLICON_RESTCONF_HTTP2_PLAIN
Removed default value:
CLICON_RESTCONF_INSTALLDIR
Marked as obsolete:
@ -583,6 +584,18 @@ module clixon-config {
must be set to 'none'.
";
}
leaf CLICON_RESTCONF_HTTP2_PLAIN {
type boolean;
default true;
description
"Applies to plan (non-tls) http/2 ie when clixon is configured with --enable-nghttp2
If false, disable direct and upgrade for plain(non-tls) HTTP/2.
If true, allows direct and upgrade for plain(non-tls) HTTP/2.
This is especially useful in http/1 + http/2 mode to avoid the complex upgrade/switch
from http/1 to http/2.
Note this also disables plain http/2 in prior-knowledge, that is, in http/2-only mode.
HTTP/2 in https(TLS) is unaffected";
}
leaf CLICON_CLI_DIR {
type string;
description