Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…in HTTP version <= 1.0
  • Loading branch information...
commit 594485c2e1b59d2e668a191bea49bdd5ab47c0d9 1 parent 8bec3ea
@tomika authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  http_parser.h
View
2  http_parser.h
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.