This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofHttpResponse Class Reference
an HTTP response to a GET or POST request More...
#include <ofURLFileLoader.h>
Public Member Functions | |
ofHttpResponse () | |
ofHttpResponse (const ofHttpRequest &request, const ofBuffer &data, int status, const std::string &error) | |
ofHttpResponse (const ofHttpRequest &request, int status, const std::string &error) | |
operator ofBuffer & () | |
Public Attributes | |
ofHttpRequest | request |
matching HTTP request for this response | |
ofBuffer | data |
response raw data | |
int | status |
HTTP response status (200: OK, 404: Not Found, etc) | |
std::string | error |
HTTP error string, if any (OK, Not Found, etc) | |
Detailed Description
an HTTP response to a GET or POST request
Constructor & Destructor Documentation
◆ ofHttpResponse() [1/3]
ofHttpResponse::ofHttpResponse | ( | ) |
◆ ofHttpResponse() [2/3]
ofHttpResponse::ofHttpResponse | ( | const ofHttpRequest & | request, |
const ofBuffer & | data, | ||
int | status, | ||
const std::string & | error | ||
) |
◆ ofHttpResponse() [3/3]
ofHttpResponse::ofHttpResponse | ( | const ofHttpRequest & | request, |
int | status, | ||
const std::string & | error | ||
) |
Member Function Documentation
◆ operator ofBuffer &()
ofHttpResponse::operator ofBuffer & | ( | ) |
Member Data Documentation
◆ data
ofBuffer ofHttpResponse::data |
response raw data
◆ error
std::string ofHttpResponse::error |
HTTP error string, if any (OK, Not Found, etc)
◆ request
ofHttpRequest ofHttpResponse::request |
matching HTTP request for this response
◆ status
int ofHttpResponse::status |
HTTP response status (200: OK, 404: Not Found, etc)
The documentation for this class was generated from the following files:
- /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/utils/ofURLFileLoader.h
- /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/utils/ofURLFileLoader.cpp