177 explicit QHttp(QObject * parent = 0);
178 QHttp(
const QString & hostname, quint16 port = 80, QObject * parent = 0);
179 QHttp(
const QString & hostname, ConnectionMode mode, quint16 port = 0, QObject * parent = 0);
203 ProxyAuthenticationRequiredError
206 int setHost(
const QString & hostname, quint16 port = 80);
207 int setHost(
const QString & hostname, ConnectionMode mode, quint16 port = 0);
209 int setSocket(QTcpSocket * socket);
210 int setUser(
const QString & username,
const QString & password = QString());
212#ifndef QT_NO_NETWORKPROXY
213 int setProxy(
const QString & host,
int port,
214 const QString & username = QString(),
215 const QString & password = QString());
216 int setProxy(
const QNetworkProxy & proxy);
219 int get(
const QString & path, QIODevice * to = 0);
220 int post(
const QString & path, QIODevice * data, QIODevice * to = 0);
221 int post(
const QString & path,
const QByteArray & data, QIODevice * to = 0);
222 int head(
const QString & path);
223 int request(
const QHttpRequestHeader & header, QIODevice * device = 0, QIODevice * to = 0);
224 int request(
const QHttpRequestHeader & header,
const QByteArray & data, QIODevice * to = 0);
226 int closeConnection();
229 qint64 bytesAvailable()
const;
230 qint64 read(
char * data, qint64 maxlen);
231 QByteArray readAll();
233 int currentId()
const;
234 QIODevice * currentSourceDevice()
const;
235 QIODevice * currentDestinationDevice()
const;
238 bool hasPendingRequests()
const;
239 void clearPendingRequests();
244 QString errorString()
const;
250 void ignoreSslErrors();
266#ifndef QT_NO_NETWORKPROXY
276 Q_DISABLE_COPY(
QHttp)
279 void _q_startNextRequest();
280 void _q_slotReadyRead();
281 void _q_slotConnected();
282 void _q_slotError(QAbstractSocket::SocketError
e);
283 void _q_slotClosed();
284 void _q_slotBytesWritten(qint64 numBytes);
286 void _q_slotEncryptedBytesWritten(qint64 numBytes);
288 void _q_slotDoFinished();
289 void _q_slotSendRequest();
290 void _q_continuePost();