45 #include <QtCore/qobject.h> 46 #include <QtCore/qstringlist.h> 47 #include <QtCore/qmap.h> 48 #include <QtCore/qpair.h> 49 #include <QtCore/qscopedpointer.h> 83 bool hasKey(
const QString &key)
const;
87 void removeValue(
const QString &key);
88 void removeAllValues(
const QString &key);
91 bool hasContentLength()
const;
92 uint contentLength()
const;
93 void setContentLength(
int len);
95 bool hasContentType()
const;
100 bool isValid()
const;
102 virtual int majorVersion()
const = 0;
103 virtual int minorVersion()
const = 0;
106 virtual bool parseLine(
const QString &line,
int number);
107 bool parse(
const QString &str);
128 void setStatusLine(
int code,
const QString &
text =
QString(),
int majorVer = 1,
int minorVer = 1);
130 int statusCode()
const;
156 void setRequest(
const QString &method,
const QString &path,
int majorVer = 1,
int minorVer = 1);
207 ProxyAuthenticationRequiredError
216 #ifndef QT_NO_NETWORKPROXY 217 int setProxy(
const QString &host,
int port,
230 int closeConnection();
233 qint64 bytesAvailable()
const;
237 {
return read(data,
qint64(maxlen)); }
241 int currentId()
const;
243 QIODevice *currentDestinationDevice()
const;
246 bool hasPendingRequests()
const;
247 void clearPendingRequests();
257 #ifndef QT_NO_OPENSSL 258 void ignoreSslErrors();
262 void stateChanged(
int);
267 void dataSendProgress(
int,
int);
268 void dataReadProgress(
int,
int);
270 void requestStarted(
int);
271 void requestFinished(
int,
bool);
274 #ifndef QT_NO_NETWORKPROXY 279 #ifndef QT_NO_OPENSSL 293 #ifndef QT_NO_OPENSSL
ConnectionMode
This enum is used to specify the mode of connection to use:
#define QT_END_NAMESPACE
This macro expands to.
The QByteArray class provides an array of bytes.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
#define Q_PRIVATE_SLOT(d, signature)
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
Q_GUI_EXPORT QString errorString(EGLint code=eglGetError())
The QNetworkProxy class provides a network layer proxy.
static QString toString(Register *reg, int type, bool *ok=0)
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QStringList class provides a list of strings.
static const char * data(const QByteArray &arr)
The QTcpSocket class provides a TCP socket.
The State element defines configurations of objects and properties.
The QAuthenticator class provides an authentication object.
The QHttp class provides an implementation of the HTTP protocol.
The QTimerEvent class contains parameters that describe a timer event.
Error
This enum identifies the error that occurred.
#define Q_DECLARE_PRIVATE(Class)
The QSslError class provides an SSL error.
The QIODevice class is the base interface class of all I/O devices in Qt.
The QAbstractSocket class provides the base functionality common to all socket types.
The QList class is a template class that provides lists.