This library is used to make HTTP and HTTPS calls from mbed OS 5 applications.
Fork of mbed-http by
Diff: source/http_request.h
- Revision:
- 15:ffc77f212382
- Parent:
- 11:96e4dcb9c0c2
- Child:
- 17:6e0025e01b98
--- a/source/http_request.h Thu Mar 30 15:13:37 2017 +0200 +++ b/source/http_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" /** @@ -148,7 +148,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);