From 3fb140d6d2f8bf0344e7c311923178db808cb437 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Mon, 15 Jan 2018 20:49:59 +0300 Subject: HTTP parser: improved error reporting. --- src/nxt_http_parse.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/nxt_http_parse.h') 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; -- cgit