nghttp2_option_set_max_deflate_dynamic_table_size¶
Synopsis¶
#include <nghttp2/nghttp2.h>
-
void
nghttp2_option_set_max_deflate_dynamic_table_size
(nghttp2_option *option, size_t val); /** * @function * * This function sets the maximum number of SETTINGS entries per * SETTINGS frame that will be accepted. If more than those entries * are received, the peer is considered to be misbehaving and session * will be closed. The default value is 32. */ void nghttp2_option_set_max_settings(nghttp2_option *option, size_t val); /** * @function * * Initializes |*session_ptr| for client use. The all members of * |callbacks| are copied to |*session_ptr|. Therefore |*session_ptr| * does not store |callbacks|. The |user_data| is an arbitrary user * supplied data, which will be passed to the callback functions. * * The :type:nghttp2_send_callback must be specified. If the * application code uses nghttp2_session_recv(), the * :type:nghttp2_recv_callback must be specified. The other members * of |callbacks| can be NULL. * * If this function fails, |*session_ptr| is left untouched. * * This function returns 0 if it succeeds, or one of the following * negative error codes: * * :enum:NGHTTP2_ERR_NOMEM * Out of memory. */ int nghttp2_session_client_new(nghttp2_session **session_ptr, const nghttp2_session_callbacks *callbacks, void *user_data)¶ This option sets the maximum dynamic table size for deflating header fields. The default value is 4KiB. In HTTP/2, receiver of deflated header block can specify maximum dynamic table size. The actual maximum size is the minimum of the size receiver specified and this option value.