#include <httprequest.h>
|
| | HTTPRequest (const QNetworkRequest &hdr, const QString &payload, const QString &host, bt::Uint16 port, bool verbose) |
| |
| QString | errorString () const |
| |
| QByteArray | replyData () const |
| |
|
void | replyFinished (QNetworkReply *networkReply) |
| |
| void | start () |
| |
| bool | succeeded () const |
| |
|
virtual bool | deleteAllowed () const |
| | whether or not we can do a deleteLater on the job after it has finished.
|
| |
- Author
- Joris Guisson
Simple HTTP request class. TODO: switch to KIO for this
Definition at line 58 of file httprequest.h.
◆ HTTPRequest()
| bt::HTTPRequest::HTTPRequest |
( |
const QNetworkRequest & |
hdr, |
|
|
const QString & |
payload, |
|
|
const QString & |
host, |
|
|
bt::Uint16 |
port, |
|
|
bool |
verbose |
|
) |
| |
Constructor, set the url and the request header.
- Parameters
-
| hdr | The http request header |
| payload | The payload |
| host | The host |
| port | THe port |
| verbose | Print traffic to the log |
◆ errorString()
| QString bt::HTTPRequest::errorString |
( |
| ) |
const |
|
inline |
In case of failure this function will return an error string
Definition at line 109 of file httprequest.h.
◆ replyData()
| QByteArray bt::HTTPRequest::replyData |
( |
| ) |
const |
|
inline |
◆ result
An OK reply was sent.
- Parameters
-
| r | The sender of the request |
◆ start()
| void bt::HTTPRequest::start |
( |
| ) |
|
Open a connection and send the request.
◆ succeeded()
| bool bt::HTTPRequest::succeeded |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: