nghttp3_conn_get_stream_priority

Synopsis

#include <nghttp3/nghttp3.h>

int nghttp3_conn_get_stream_priority(nghttp3_conn *conn, nghttp3_pri *dest, int64_t stream_id)

nghttp3_conn_get_stream_priority() stores stream priority of a stream denoted by stream_id into *dest. stream_id must identify client initiated bidirectional stream. Only server can use this function.

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

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.