nghttp2_conn_get_stream_priority

Synopsis

#include <nghttp2v2/nghttp2.h>

int nghttp2_conn_get_stream_priority(const nghttp2_conn *conn, nghttp2_pri *dest, int64_t stream_id)

nghttp2_conn_get_stream_priority() stores stream priority of a stream denoted by stream_id into *dest. 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:

NGHTTP2_ERR_STREAM_NOT_FOUND

Stream not found.