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/https_request.h
- Revision:
- 15:ffc77f212382
- Parent:
- 11:96e4dcb9c0c2
diff -r 3004056e4661 -r ffc77f212382 source/https_request.h
--- a/source/https_request.h	Thu Mar 30 15:13:37 2017 +0200
+++ b/source/https_request.h	Fri Jul 28 14:26:26 2017 +0200
@@ -24,7 +24,7 @@
 #include "http_parser.h"
 #include "http_response.h"
 #include "http_request_builder.h"
-#include "http_response_parser.h"
+#include "http_request_parser.h"
 #include "http_parsed_url.h"
 #include "tls_socket.h"
 
@@ -157,7 +157,7 @@
         // Create a response object
         _response = new HttpResponse();
         // And a response parser
-        HttpResponseParser parser(_response, _body_callback);
+        HttpParser parser(_response, HTTP_RESPONSE, _body_callback);
 
         // Set up a receive buffer (on the heap)
         uint8_t* recv_buffer = (uint8_t*)malloc(HTTP_RECEIVE_BUFFER_SIZE);
    