nghttp3_pri_parse_priority

Synopsis

#include <nghttp3/nghttp3.h>

int nghttp3_pri_parse_priority(nghttp3_pri *dest, const uint8_t *value, size_t len)

nghttp3_pri_parse_priority() parses Priority header field value pointed by value of length len, and stores the result in the object pointed by dest. Priority header field is defined in RFC 9218.

This function does not initialize the object pointed by dest before storing the result. It only assigns the values that the parser correctly extracted to fields.

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

NGHTTP3_ERR_INVALID_ARGUMENT

Failed to parse the header field value.