nghttp3_conn_bind_qpack_streams

Synopsis

#include <nghttp3/nghttp3.h>

int nghttp3_conn_bind_qpack_streams(nghttp3_conn *conn, int64_t qenc_stream_id, int64_t qdec_stream_id)

nghttp3_conn_bind_qpack_streams() binds stream denoted by qenc_stream_id to outgoing QPACK encoder stream, and stream denoted by qdec_stream_id to outgoing QPACK encoder stream.

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

NGHTTP3_ERR_INVALID_STATE

QPACK encoder/decoder stream have already corresponding stream IDs.

NGHTTP3_ERR_NOMEM

Out of memory.