Lines Matching +full:no +full:- +full:enum
1 /* SPDX-License-Identifier: MIT */
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
59 * environment (e.g. -DHTTP_MAX_HEADER_SIZE=<value>). To remove
61 * to a very large number (e.g. -DHTTP_MAX_HEADER_SIZE=0x7fffffff)
71 /* Callbacks should return non-zero to indicate an error. The parser will
77 * HEAD request which may contain 'Content-Length' or 'Transfer-Encoding:
93 enum http_parser_type { HTTP_REQUEST, HTTP_RESPONSE, HTTP_BOTH };
96 enum flags {
107 enum http_errno {
144 #define HTTP_PARSER_ERRNO(p) ((enum http_errno) (p)->http_errno)
149 unsigned int type : 2; /* enum http_parser_type */
150 unsigned int flags : 8; /* F_xxx values from 'flags' enum;
151 * semi-public
153 unsigned int state : 7; /* enum state from http_parser.c */
154 unsigned int header_state : 7; /* enum header_state from http_parser.c
160 uint64_t content_length; /* # bytes in body (0 if no Content-Length
163 /** READ-ONLY **/
172 * 0 = No upgrade header present.
200 * in parser->content_length.
207 /* Returns the library version. Bits 16-23 contain the major version number,
208 * bits 8-15 the minor version number and bits 0-7 the patch level.
219 void http_parser_init(struct http_parser *parser, enum http_parser_type type);
228 * `parser->http_errno` on error.
244 const char *http_method_str(enum http_method m);
247 const char *http_errno_name(enum http_errno err);
250 const char *http_errno_description(enum http_errno err);
252 /* Pause or un-pause the parser; a nonzero value pauses */