diff options
author | Brad King <brad.king@kitware.com> | 2022-10-31 18:09:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-10-31 18:09:53 (GMT) |
commit | 8b736054084a55d09627fed5700e6987a7d9e63f (patch) | |
tree | 60838d26abeaa452b37b2975fb52f5081eeb019a /Utilities/cmnghttp2/lib/nghttp2_option.c | |
parent | 66c953677531b705c7c9e2080c62b47bb896007f (diff) | |
parent | 7ce2a682a3e2e488a74dbc745766ac74e12f6a24 (diff) | |
download | CMake-8b736054084a55d09627fed5700e6987a7d9e63f.zip CMake-8b736054084a55d09627fed5700e6987a7d9e63f.tar.gz CMake-8b736054084a55d09627fed5700e6987a7d9e63f.tar.bz2 |
Merge branch 'upstream-nghttp2' into update-nghttp2
# By nghttp2 upstream
* upstream-nghttp2:
nghttp2 2022-09-21 (87fef4ab)
Diffstat (limited to 'Utilities/cmnghttp2/lib/nghttp2_option.c')
-rw-r--r-- | Utilities/cmnghttp2/lib/nghttp2_option.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Utilities/cmnghttp2/lib/nghttp2_option.c b/Utilities/cmnghttp2/lib/nghttp2_option.c index e53f22d..ee0cd0f 100644 --- a/Utilities/cmnghttp2/lib/nghttp2_option.c +++ b/Utilities/cmnghttp2/lib/nghttp2_option.c @@ -90,6 +90,10 @@ void nghttp2_option_set_builtin_recv_extension_type(nghttp2_option *option, option->opt_set_mask |= NGHTTP2_OPT_BUILTIN_RECV_EXT_TYPES; option->builtin_recv_ext_types |= NGHTTP2_TYPEMASK_ORIGIN; return; + case NGHTTP2_PRIORITY_UPDATE: + option->opt_set_mask |= NGHTTP2_OPT_BUILTIN_RECV_EXT_TYPES; + option->builtin_recv_ext_types |= NGHTTP2_TYPEMASK_PRIORITY_UPDATE; + return; default: return; } @@ -121,3 +125,21 @@ void nghttp2_option_set_max_outbound_ack(nghttp2_option *option, size_t val) { option->opt_set_mask |= NGHTTP2_OPT_MAX_OUTBOUND_ACK; option->max_outbound_ack = val; } + +void nghttp2_option_set_max_settings(nghttp2_option *option, size_t val) { + option->opt_set_mask |= NGHTTP2_OPT_MAX_SETTINGS; + option->max_settings = val; +} + +void nghttp2_option_set_server_fallback_rfc7540_priorities( + nghttp2_option *option, int val) { + option->opt_set_mask |= NGHTTP2_OPT_SERVER_FALLBACK_RFC7540_PRIORITIES; + option->server_fallback_rfc7540_priorities = val; +} + +void nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation( + nghttp2_option *option, int val) { + option->opt_set_mask |= + NGHTTP2_OPT_NO_RFC9113_LEADING_AND_TRAILING_WS_VALIDATION; + option->no_rfc9113_leading_and_trailing_ws_validation = val; +} |