TreeFrogFramework: THttpResponse Class Reference
#include <thttpresponse.h>
Public Member Functions | |
| THttpResponse () | |
| THttpResponse (const THttpResponseHeader &header, const QByteArray &body) | |
| ~THttpResponse () | |
| THttpResponseHeader & | header () |
| const THttpResponseHeader & | header () const |
| bool | isBodyNull () const |
| void | setBody (const QByteArray &body) |
| QByteArray | body () const |
| void | setBodyFile (const QString &filePath) |
| QIODevice * | bodyIODevice () |
| int64_t | bodyLength () const |
| void | clear () |
The THttpResponse class contains response information for HTTP.
|
inline |
Constructor.
◆ THttpResponse() [2/2]
Constructor with the header header and the body body.
◆ ~THttpResponse()
| THttpResponse::~THttpResponse | ( | ) |
Destructor.
◆ body()
| QByteArray THttpResponse::body | ( | ) | const |
Returns the body.
◆ bodyIODevice()
|
inline |
Returns the IO device of the body currently set.
◆ bodyLength()
|
inline |
Returns the number of bytes of the body.
◆ clear()
| void THttpResponse::clear | ( | ) |
◆ header() [1/2]
◆ header() [2/2]
◆ isBodyNull()
| bool THttpResponse::isBodyNull | ( | ) | const |
Returns true if the body is null; otherwise returns false.
◆ setBody()
| void THttpResponse::setBody | ( | const QByteArray & | body | ) |
Sets the body to body.
◆ setBodyFile()
| void THttpResponse::setBodyFile | ( | const QString & | filePath | ) |
Sets the file to read the content from the given filePath.
The documentation for this class was generated from the following files:
- src/thttpresponse.h
- src/thttpresponse.cpp