Fork of SandBox's original mbed-http (https://os.mbed.com/teams/sandbox/code/mbed-http/) and update for MbedOS6+ Content of TESTS folder was replaced with basic examples form original SandBox's HelloWorld
Diff: source/https_request.h
- Revision:
- 15:ffc77f212382
- Parent:
- 11:96e4dcb9c0c2
- Child:
- 20:0e63d6a93c02
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);