Imported Upstream version 1.0.0
[platform/upstream/nghttp2.git] / doc / nghttp2_check_header_name.rst
1
2 nghttp2_check_header_name
3 =========================
4
5 Synopsis
6 --------
7
8 *#include <nghttp2/nghttp2.h>*
9
10 .. function:: int nghttp2_check_header_name(const uint8_t *name, size_t len)
11
12     
13     Returns nonzero if HTTP header field name *name* of length *len* is
14     valid according to http://tools.ietf.org/html/rfc7230#section-3.2
15     
16     Because this is a header field name in HTTP2, the upper cased alphabet
17     is treated as error.