4#include <QtNetwork/private/qtnetworkglobal_p.h>
8#include <QtNetwork/qsslconfiguration.h>
17 : readBufferMaxSize(0),
18 emitAllUploadProgressSignals(
false),
490 return d_func()->readBufferMaxSize;
514 d->readBufferMaxSize =
size;
523 return d_func()->manager;
535 return d_func()->originalRequest;
545 return d_func()->operation;
556 return d_func()->errorCode;
568 return d_func()->isFinished;
595 return d_func()->
url;
619 return d->findRawHeader(
headerName) !=
d->rawHeaders.constEnd();
636 if (
it !=
d->rawHeaders.constEnd())
653 return d->rawHeaders;
663 return d_func()->rawHeadersKeys();
678 return d_func()->attributes.
value(code);
694 sslConfigurationImplementation(
config);
704 setSslConfigurationImplementation(
config);
734 ignoreSslErrorsImplementation(errors);
857 d->errorCode = errorCode;
930 d->attributes.insert(code,
value);
932 d->attributes.remove(code);
937#include "moc_qnetworkreply.cpp"
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
\inmodule QtCore \reentrant
virtual qint64 size() const
For open random-access devices, this function returns the size of the device.
void setErrorString(const QString &errorString)
Sets the human readable description of the last device error that occurred to str.
QString errorString() const
Returns a human-readable description of the last device error that occurred.
virtual void close()
First emits aboutToClose(), then closes the device and sets its OpenMode to NotOpen.
const_iterator ConstIterator
The QNetworkAccessManager class allows the application to send network requests and receive replies.
Operation
Indicates the operation this reply is processing.
static const int progressSignalInterval
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
virtual void setReadBufferSize(qint64 size)
Sets the size of the read buffer to be size bytes.
QNetworkAccessManager * manager() const
Returns the QNetworkAccessManager that was used to create this QNetworkReply object.
QByteArray rawHeader(const QByteArray &headerName) const
Returns the raw contents of the header headerName as sent by the remote server.
void setError(NetworkError errorCode, const QString &errorString)
Sets the error condition to be errorCode.
virtual void close() override
Closes this device for reading.
QNetworkAccessManager::Operation operation() const
Returns the operation that was posted for this reply.
QVariant attribute(QNetworkRequest::Attribute code) const
Returns the attribute associated with the code code.
qint64 readBufferSize() const
Returns the size of the read buffer, in bytes.
virtual bool isSequential() const override
void setOperation(QNetworkAccessManager::Operation operation)
Sets the associated operation for this object to be operation.
void setUrl(const QUrl &url)
Sets the URL being processed to be url.
NetworkError error() const
Returns the error that was found during the processing of this request.
void setRawHeader(const QByteArray &headerName, const QByteArray &value)
Sets the raw header headerName to be of value value.
QNetworkReply(QObject *parent=nullptr)
Creates a QNetworkReply object with parent parent.
void setAttribute(QNetworkRequest::Attribute code, const QVariant &value)
Sets the attribute code to have value value.
QVariant header(QNetworkRequest::KnownHeaders header) const
Returns the value of the known header header, if that header was sent by the remote server.
void setRequest(const QNetworkRequest &request)
Sets the associated request for this object to be request.
NetworkError
Indicates all possible error conditions found during the processing of the request.
void setHeader(QNetworkRequest::KnownHeaders header, const QVariant &value)
Sets the known header header to be of value value.
bool hasRawHeader(const QByteArray &headerName) const
Returns true if the raw header of name headerName was sent by the remote server.
virtual void ignoreSslErrors()
If this function is called, SSL errors related to network connection will be ignored,...
QList< QByteArray > rawHeaderList() const
Returns a list of headers fields that were sent by the remote server, in the order that they were sen...
void finished()
This signal is emitted when the reply has finished processing.
QNetworkRequest request() const
Returns the request that was posted for this reply.
virtual qint64 writeData(const char *data, qint64 len) override
~QNetworkReply()
Disposes of this reply and frees any resources associated with it.
QUrl url() const
Returns the URL of the content downloaded or uploaded.
const QList< RawHeaderPair > & rawHeaderPairs() const
Returns a list of raw header pairs.
The QNetworkRequest class holds a request to be sent with QNetworkAccessManager.
KnownHeaders
List of known header types that QNetworkRequest parses.
@ ConnectionEncryptedAttribute
The QSslConfiguration class holds the configuration and state of an SSL connection.
\macro QT_RESTRICTED_CAST_FROM_ASCII
QString url(FormattingOptions options=FormattingOptions(PrettyDecoded)) const
Returns a string representation of the URL.
QSet< QString >::iterator it
Combined button and popup list for selecting options.
static QString header(const QString &name)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
static QByteArray headerName(QNetworkRequest::KnownHeaders header)
GLenum GLuint GLintptr GLsizeiptr size
[1]
QUrl url("example.com")
[constructor-url-reference]
QNetworkRequest request(url)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent