Permalink
Browse files

"status complete" callback added to support Simple-Response handling …

…in HTTP version <= 1.0
  • Loading branch information...
1 parent 8bec3ea commit 594485c2e1b59d2e668a191bea49bdd5ab47c0d9 @tomika tomika committed Mar 24, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 http_parser.h
View
@@ -150,6 +150,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") \
@@ -241,6 +242,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 594485c

Please sign in to comment.