[][src]Function libnghttp2_sys::nghttp2_option_set_user_recv_extension_type

pub unsafe extern "C" fn nghttp2_option_set_user_recv_extension_type(
    option: *mut nghttp2_option,
    type_: u8
)

@function

Sets extension frame type the application is willing to handle with user defined callbacks (see :type:nghttp2_on_extension_chunk_recv_callback and :type:nghttp2_unpack_extension_callback). The |type| is extension frame type, and must be strictly greater than 0x9. Otherwise, this function does nothing. The application can call this function multiple times to set more than one frame type to receive. The application does not have to call this function if it just sends extension frames.