Upgrade to 1.46.0
[platform/upstream/nghttp2.git] / doc / nghttp2_option_set_builtin_recv_extension_type.rst
1
2 nghttp2_option_set_builtin_recv_extension_type
3 ==============================================
4
5 Synopsis
6 --------
7
8 *#include <nghttp2/nghttp2.h>*
9
10 .. function:: void nghttp2_option_set_builtin_recv_extension_type(nghttp2_option *option, uint8_t type)
11
12     
13     Sets extension frame type the application is willing to receive
14     using builtin handler.  The *type* is the extension frame type to
15     receive, and must be strictly greater than 0x9.  Otherwise, this
16     function does nothing.  The application can call this function
17     multiple times to set more than one frame type to receive.  The
18     application does not have to call this function if it just sends
19     extension frames.
20     
21     If same frame type is passed to both
22     `nghttp2_option_set_builtin_recv_extension_type()` and
23     `nghttp2_option_set_user_recv_extension_type()`, the latter takes
24     precedence.