QtNetwork/qhttp.h Source File
Go to the documentation of this file.
68 class QHttpHeaderPrivate;
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;
99 virtual QString toString()
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);
118 class QHttpResponseHeaderPrivate;
128 void setStatusLine(
int code,
const QString &text =
QString(),
int majorVer = 1,
int minorVer = 1);
130 int statusCode()
const;
143 friend class QHttpPrivate;
146 class QHttpRequestHeaderPrivate;
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;
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
284 Q_DISABLE_COPY(
QHttp)
285 Q_DECLARE_PRIVATE(
QHttp)
293 #ifndef QT_NO_OPENSSL
300 friend class QHttpNormalRequest;
301 friend class QHttpSetHostRequest;
302 friend class QHttpSetSocketRequest;
303 friend class QHttpSetUserRequest;
304 friend class QHttpSetProxyRequest;
305 friend class QHttpCloseRequest;
306 friend class QHttpPGHRequest;
GLuint GLuint GLsizei GLenum type
State
The state the media producing object is in at the moment.
#define Q_PRIVATE_SLOT(d, signature)
GLXDrawable GLXDrawable read
unsigned long long quint64
#define QT_BEGIN_NAMESPACE
GLsizei GLsizei GLenum GLenum const GLvoid * data
GLsizei const GLfloat * value
int int int int int int h
GLboolean GLenum GLenum GLvoid * values