nghttp2_check_authority
Synopsis
#include <nghttp2v2/nghttp2.h>
-
int nghttp2_check_authority(const uint8_t *value, size_t len)
nghttp2_check_authority()returns nonzero if the value which is supposed to be the value of the :authority or host header field is valid according to RFC 3986 Section 3.2.value is valid if it merely consists of the allowed characters. In particular, it does not check whether value follows the syntax of authority.