This library is used to make HTTP and HTTPS calls from mbed OS 5 applications.
Fork of mbed-http by
Diff: source/http_response_parser.h
- Revision:
- 7:2e3eedb9ca5c
- Parent:
- 4:539df159e058
--- 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;
