nghttp3_conn_set_server_stream_priority

Synopsis

#include <nghttp3/nghttp3.h>

int nghttp3_conn_set_server_stream_priority(nghttp3_conn *conn, int64_t stream_id, const nghttp3_pri *pri)

nghttp3_conn_set_server_stream_priority() updates priority of a stream denoted by stream_id with the value pointed by pri. stream_id must identify client initiated bidirectional stream.

This function must not be called if conn is initialized as client.

This function completely overrides stream priority set by client, and any attempts to update priority by client are ignored.

This function returns 0 if it succeeds, or one of the following negative error codes:

NGHTTP3_ERR_INVALID_ARGUMENT

stream_id is not a client initiated bidirectional stream ID.

NGHTTP3_ERR_STREAM_NOT_FOUND

Stream not found.

NGHTTP3_ERR_NOMEM

Out of memory.