#include <thttpresponse.h>
The THttpResponse class contains response information for HTTP.
◆ THttpResponse() [1/2]
THttpResponse::THttpResponse |
( |
| ) |
|
|
inline |
◆ THttpResponse() [2/2]
Constructor with the header header and the body body.
◆ ~THttpResponse()
THttpResponse::~THttpResponse |
( |
| ) |
|
◆ body()
QByteArray THttpResponse::body |
( |
| ) |
const |
◆ bodyIODevice()
QIODevice * THttpResponse::bodyIODevice |
( |
| ) |
|
|
inline |
Returns the IO device of the body currently set.
◆ bodyLength()
int64_t THttpResponse::bodyLength |
( |
| ) |
const |
|
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 | ) |
|
◆ 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: