Upgrade to 1.46.0
[platform/upstream/nghttp2.git] / doc / nghttp2_check_method.rst
1
2 nghttp2_check_method
3 ====================
4
5 Synopsis
6 --------
7
8 *#include <nghttp2/nghttp2.h>*
9
10 .. function:: int nghttp2_check_method(const uint8_t *value, size_t len)
11
12     
13     Returns nonzero if the *value* which is supposed to be the value of
14     the :method header field is valid according to
15     https://datatracker.ietf.org/doc/html/rfc7231#section-4 and
16     https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.6