4#ifndef QHTTPNETWORKREPLY_H
5#define QHTTPNETWORKREPLY_H
18#include <QtNetwork/private/qtnetworkglobal_p.h>
20#include <qplatformdefs.h>
22#include <QtNetwork/qtcpsocket.h>
24#include <QtNetwork/qsslsocket.h>
25#include <QtNetwork/qsslerror.h>
27#include <QtNetwork/qnetworkrequest.h>
28#include <QtNetwork/qnetworkreply.h>
31#include <private/qobject_p.h>
32#include <private/qhttpnetworkheader_p.h>
33#include <private/qhttpnetworkrequest_p.h>
34#include <private/qauthenticator_p.h>
35#include <private/qringbuffer_p.h>
36#include <private/qbytedata_p.h>
38#ifndef QT_NO_NETWORKPROXY
43#include <private/qdecompresshelper_p.h>
67 void setMajorVersion(
int version);
68 void setMinorVersion(
int version);
82 int statusCode()
const;
83 void setStatusCode(
int code);
91 void setReasonPhrase(
const QString &reason);
93 qint64 bytesAvailable()
const;
94 qint64 bytesAvailableNextBlock()
const;
95 bool readAnyAvailable()
const;
100 void setDownstreamLimited(
bool t);
103 bool supportsUserProvidedDownloadBuffer();
104 void setUserProvidedDownloadBuffer(
char*);
105 char* userProvidedDownloadBuffer();
109 bool isAborted()
const;
110 bool isFinished()
const;
112 bool isPipeliningUsed()
const;
113 bool isHttp2Used()
const;
114 void setHttp2WasUsed(
bool h2Used);
115 qint64 removedContentLength()
const;
117 bool isRedirecting()
const;
121 QUrl redirectUrl()
const;
122 void setRedirectUrl(
const QUrl &
url);
124 static bool isHttpRedirect(
int statusCode);
126 bool isCompressed()
const;
150#ifndef QT_NO_NETWORKPROXY
163 friend class QSpdyProtocolHandler;
180 bool findChallenge(
bool forProxy,
QByteArray &challenge)
const;
182 void clearHttpLayerInformation();
188 bool isRedirecting()
const;
189 bool shouldEmitSignals();
190 bool expectContent();
193 qint64 bytesAvailable()
const;
195 bool isConnectionCloseEnabled();
197 bool isCompressed()
const;
198 void removeAutoDecompressHeader();
The QAbstractSocket class provides the base functionality common to all socket types.
The QAuthenticator class provides an authentication object.
QPointer< QHttpNetworkConnection > connection
~QHttpNetworkReplyPrivate()
char * userProvidedDownloadBuffer
qint64 removedContentLength
QPointer< QHttpNetworkConnectionChannel > connectionChannel
bool chunkedTransferEncoding
bool forceConnectionCloseEnabled
qint64 totallyUploadedData
bool connectionCloseEnabled
QHttpNetworkRequest request
QByteDataBuffer responseData
void cacheCredentials(const QHttpNetworkRequest &request, QAuthenticator *authenticator)
void proxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *authenticator)
void preSharedKeyAuthenticationRequired(QSslPreSharedKeyAuthenticator *authenticator)
void finishedWithError(QNetworkReply::NetworkError errorCode, const QString &detail=QString())
void redirected(const QUrl &url, int httpStatus, int maxRedirectsRemaining)
void authenticationRequired(const QHttpNetworkRequest &request, QAuthenticator *authenticator)
void socketStartedConnecting()
void dataSendProgress(qint64 done, qint64 total)
void sslErrors(const QList< QSslError > &errors)
void dataReadProgress(qint64 done, qint64 total)
The QNetworkProxy class provides a network layer proxy.
NetworkError
Indicates all possible error conditions found during the processing of the request.
The QSslConfiguration class holds the configuration and state of an SSL connection.
The QSslPreSharedKeyAuthenticator class provides authentication data for pre shared keys (PSK) cipher...
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
DBusConnection * connection
static QString header(const QString &name)
GLboolean GLboolean GLboolean b
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint GLenum GLsizei length
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
request setUrl(QUrl("http://qt-project.org"))
#define Q_AUTOTEST_EXPORT
#define QT_REQUIRE_CONFIG(feature)
ReturnedValue read(const char *data)
QTextStream out(stdout)
[7]
QUrl url("example.com")
[constructor-url-reference]
QNetworkRequest request(url)
reply ignoreSslErrors(expectedSslErrors)
sslSocket setSslConfiguration(config)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent