Initial setup for TheKsystem.
Dependencies: mbed-http HTS221
Revision 7:5d32909f77de, committed 2017-02-24
- Comitter:
- Jan Jongboom
- Date:
- Fri Feb 24 11:21:24 2017 +0100
- Parent:
- 6:4a3ed1515bed
- Child:
- 8:960efb92bd84
- Commit message:
- Add chunked encoding, make HttpResponse own response headers
Changed in this revision
--- a/mbed-http.lib Thu Feb 23 14:13:01 2017 +0100 +++ b/mbed-http.lib Fri Feb 24 11:21:24 2017 +0100 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/sandbox/code/mbed-http/#112d72c60e07 +https://developer.mbed.org/teams/sandbox/code/mbed-http/#2e3eedb9ca5c
--- a/source/main-http.cpp Thu Feb 23 14:13:01 2017 +0100
+++ b/source/main-http.cpp Fri Feb 24 11:21:24 2017 +0100
@@ -13,7 +13,7 @@
printf("Headers:\n");
for (size_t ix = 0; ix < res->get_headers_length(); ix++) {
- printf("\t%s: %s\n", res->get_headers_fields()[ix].c_str(), res->get_headers_values()[ix].c_str());
+ printf("\t%s: %s\n", res->get_headers_fields()[ix]->c_str(), res->get_headers_values()[ix]->c_str());
}
printf("\nBody (%d bytes):\n\n%s\n", res->get_body_length(), res->get_body_as_string().c_str());
}
--- a/source/main-https.cpp Thu Feb 23 14:13:01 2017 +0100
+++ b/source/main-https.cpp Fri Feb 24 11:21:24 2017 +0100
@@ -65,7 +65,7 @@
mbedtls_printf("Headers:\n");
for (size_t ix = 0; ix < res->get_headers_length(); ix++) {
- mbedtls_printf("\t%s: %s\n", res->get_headers_fields()[ix].c_str(), res->get_headers_values()[ix].c_str());
+ mbedtls_printf("\t%s: %s\n", res->get_headers_fields()[ix]->c_str(), res->get_headers_values()[ix]->c_str());
}
mbedtls_printf("\nBody (%d bytes):\n\n%s\n", res->get_body_length(), res->get_body_as_string().c_str());
}
Daniel Lee