12#include <ArduinoLog.h>
19 Log.begin(LOG_LEVEL_VERBOSE, &Serial);
23 "content-type: application/json\r\n"
24 "content-length: 59\r\n"
25 "date: Fri, 01 Nov 2024 23:53:02 GMT\r\n"
26 "access-control-allow-origin: *\r\n"
27 "server: gunicorn\r\n"
28 "x-cache: Miss from cloudfront\r\n"
29 "via: 1.1 4a628119373a320de50f1e6bc0e5f87a.cloudfront.net "
31 "x-amz-cf-pop: SFO5-P2\r\n"
33 "t9EARJ8Hsu4FipZqiiVhsjwEU29sICEwjA7XMJNIOEXgOnJA-TlhdA==\r\n"
36 " \"hello\": \"I'm alive and healthy! Super healthy :D\"\r\n"
39 Log.traceln(
"Input string:\r\n%s", resp.c_str());
43 Log.traceln(
"Version: %s", client.
Version().c_str());
45 Log.traceln(
"date: %s", client.
Header(
"date").c_str());
46 Log.traceln(
"data:\r\n%s", client.
Data().c_str());
HTTP request parser library.
std::string Version()
Get the Http version.
unsigned int ResponseCode()
Get the http response code.
std::string Header(std::string header)
Get value of header.
std::string Data()
Get data from Http request.