|
ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
|
HTTP request parser library. More...
#include <dirtviz/include/http.hpp>
Public Member Functions | |
| HttpClient () | |
| Default constructor. | |
| HttpClient (const std::string &resp) | |
| Default constructor. | |
| ~HttpClient () | |
| Default destructor. | |
| 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. | |
HTTP request parser library.
HTTP request parser library
This library is used to parse HTTP requests and responses.
Examples:
| HttpClient::HttpClient | ( | ) |
|
explicit |
| std::string HttpClient::Data | ( | ) |
Get data from Http request.
Definition at line 35 of file http.cpp.
Referenced by loop(), setup(), and TestHttpClient().
| std::string HttpClient::Header | ( | std::string | header | ) |
Get value of header.
| header | Requested header |
Definition at line 33 of file http.cpp.
Referenced by setup(), and TestHttpClient().
| unsigned int HttpClient::ResponseCode | ( | ) |
Get the http response code.
Definition at line 31 of file http.cpp.
Referenced by loop(), setup(), and TestHttpClient().
| std::string HttpClient::Version | ( | ) |
Get the Http version.
Example return value "Http/1.1"
@retrun Http version
Definition at line 29 of file http.cpp.
Referenced by setup(), and TestHttpClient().