|
|
@ -141,6 +141,7 @@ enum flags
|
|
|
|
\
|
|
|
|
\
|
|
|
|
/* Callback-related errors */ \
|
|
|
|
/* Callback-related errors */ \
|
|
|
|
XX(CB_message_begin, "the on_message_begin callback failed") \
|
|
|
|
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_url, "the on_url callback failed") \
|
|
|
|
XX(CB_header_field, "the on_header_field callback failed") \
|
|
|
|
XX(CB_header_field, "the on_header_field callback failed") \
|
|
|
|
XX(CB_header_value, "the on_header_value callback failed") \
|
|
|
|
XX(CB_header_value, "the on_header_value callback failed") \
|
|
|
@ -221,6 +222,7 @@ struct http_parser {
|
|
|
|
struct http_parser_settings {
|
|
|
|
struct http_parser_settings {
|
|
|
|
http_cb on_message_begin;
|
|
|
|
http_cb on_message_begin;
|
|
|
|
http_data_cb on_url;
|
|
|
|
http_data_cb on_url;
|
|
|
|
|
|
|
|
http_cb on_status_complete;
|
|
|
|
http_data_cb on_header_field;
|
|
|
|
http_data_cb on_header_field;
|
|
|
|
http_data_cb on_header_value;
|
|
|
|
http_data_cb on_header_value;
|
|
|
|
http_cb on_headers_complete;
|
|
|
|
http_cb on_headers_complete;
|
|
|
|