Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-http by
Diff: source/http_response_parser.h
- Revision:
- 7:2e3eedb9ca5c
- Parent:
- 4:539df159e058
diff -r 112d72c60e07 -r 2e3eedb9ca5c source/http_response_parser.h
--- a/source/http_response_parser.h Thu Feb 23 14:11:47 2017 +0100
+++ b/source/http_response_parser.h Fri Feb 24 11:20:16 2017 +0100
@@ -108,16 +108,18 @@
}
int on_message_complete(http_parser* parser) {
+ response->set_message_complete();
+
return 0;
}
int on_chunk_header(http_parser* parser) {
- // ?? Don't know when this is used
+ response->set_chunked();
+
return 0;
}
int on_chunk_complete(http_parser* parser) {
- // ?? Don't know when this is used
return 0;
}
@@ -159,7 +161,7 @@
}
static int on_chunk_complete_callback(http_parser* parser) {
- return ((HttpResponseParser*)parser->data)->on_chunk_complete_callback(parser);
+ return ((HttpResponseParser*)parser->data)->on_chunk_complete(parser);
}
HttpResponse* response;
