summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_parse.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-01-15 20:49:59 +0300
committerValentin Bartenev <vbart@nginx.com>2018-01-15 20:49:59 +0300
commit3fb140d6d2f8bf0344e7c311923178db808cb437 (patch)
tree139b1cf0d91895682beb6818136ab2ee6e4831ea /src/nxt_http_parse.h
parent819b43fc2da414c9132c6061eabf063ae08c36dc (diff)
downloadunit-3fb140d6d2f8bf0344e7c311923178db808cb437.tar.gz
unit-3fb140d6d2f8bf0344e7c311923178db808cb437.tar.bz2
HTTP parser: improved error reporting.
Diffstat (limited to '')
-rw-r--r--src/nxt_http_parse.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nxt_http_parse.h b/src/nxt_http_parse.h
index 293c4d0e..0a0ca340 100644
--- a/src/nxt_http_parse.h
+++ b/src/nxt_http_parse.h
@@ -8,6 +8,12 @@
#define _NXT_HTTP_PARSER_H_INCLUDED_
+typedef enum {
+ NXT_HTTP_PARSE_INVALID = 1,
+ NXT_HTTP_PARSE_TOO_LARGE_FIELD,
+} nxt_http_parse_error_t;
+
+
typedef struct nxt_http_request_parse_s nxt_http_request_parse_t;
typedef struct nxt_http_field_s nxt_http_field_t;
typedef struct nxt_http_fields_hash_s nxt_http_fields_hash_t;