nghttp2_conn_set_client_stream_priority
Synopsis
#include <nghttp2v2/nghttp2.h>
-
int nghttp2_conn_set_client_stream_priority(nghttp2_conn *conn, int64_t stream_id, const uint8_t *data, size_t datalen)
nghttp2_conn_set_client_stream_priority()updates priority of a stream denoted by stream_id with the value pointed by data of length datalen, which should be a serialized RFC 9218 priority field value.This function must not be called if conn is initialized as server.
This function returns 0 if it succeeds, or one of the following negative error codes:
NGHTTP2_ERR_NOMEMOut of memory.