Upgrade to 1.46.0
[platform/upstream/nghttp2.git] / doc / nghttp2_check_authority.rst
1
2 nghttp2_check_authority
3 =======================
4
5 Synopsis
6 --------
7
8 *#include <nghttp2/nghttp2.h>*
9
10 .. function:: int nghttp2_check_authority(const uint8_t *value, size_t len)
11
12     
13     Returns nonzero if the *value* which is supposed to be the value of the
14     :authority or host header field is valid according to
15     https://tools.ietf.org/html/rfc3986#section-3.2
16     
17     *value* is valid if it merely consists of the allowed characters.
18     In particular, it does not check whether *value* follows the syntax
19     of authority.