Permalink
Browse files

Merge remote-tracking branch 'tomika/master' into simple_response

  • Loading branch information...
2 parents 54f6c78 + 1d9c1bf commit e68c9eacbe342c5a607028e2fc3e40f7485d5231 @cmr committed Dec 15, 2012
Showing with 3 additions and 0 deletions.
  1. +1 −0 http_parser.c
  2. +2 −0 http_parser.h
View
@@ -866,6 +866,7 @@ size_t http_parser_execute (http_parser *parser,
case s_res_line_almost_done:
STRICT_CHECK(ch != LF);
parser->state = s_header_field_start;
+ CALLBACK_NOTIFY(status_complete);
break;
case s_start_req:
View
@@ -142,6 +142,7 @@ enum flags
\
/* Callback-related errors */ \
XX(CB_message_begin, "the on_message_begin callback failed") \
+ XX(CB_status_complete, "the on_status_complete callback failed") \
XX(CB_url, "the on_url callback failed") \
XX(CB_header_field, "the on_header_field callback failed") \
XX(CB_header_value, "the on_header_value callback failed") \
@@ -222,6 +223,7 @@ struct http_parser {
struct http_parser_settings {
http_cb on_message_begin;
http_data_cb on_url;
+ http_cb on_status_complete;
http_data_cb on_header_field;
http_data_cb on_header_value;
http_cb on_headers_complete;

0 comments on commit e68c9ea

Please sign in to comment.