Imported Upstream version 1.46.0
[platform/upstream/nghttp2.git] / doc / nghttp2_option_set_max_send_header_block_length.rst
1
2 nghttp2_option_set_max_send_header_block_length
3 ===============================================
4
5 Synopsis
6 --------
7
8 *#include <nghttp2/nghttp2.h>*
9
10 .. function:: void nghttp2_option_set_max_send_header_block_length(nghttp2_option *option, size_t val)
11
12     
13     This option sets the maximum length of header block (a set of
14     header fields per one HEADERS frame) to send.  The length of a
15     given set of header fields is calculated using
16     `nghttp2_hd_deflate_bound()`.  The default value is 64KiB.  If
17     application attempts to send header fields larger than this limit,
18     the transmission of the frame fails with error code
19     :macro:`nghttp2_error.NGHTTP2_ERR_FRAME_SIZE_ERROR`.