5#ifndef QAUTHENTICATOR_H
6#define QAUTHENTICATOR_H
8#include <QtNetwork/qtnetworkglobal.h>
9#include <QtCore/qstring.h>
10#include <QtCore/qvariant.h>
15class QAuthenticatorPrivate;
25 QAuthenticator(
const QAuthenticator &other);
26 QAuthenticator &operator=(
const QAuthenticator &other);
28 bool operator==(
const QAuthenticator &other)
const;
29 inline bool operator!=(
const QAuthenticator &other)
const {
return !operator==(other); }
32 void setUser(
const QString &user);
34 QString password()
const;
35 void setPassword(
const QString &password);
37 QString realm()
const;
38 void setRealm(
const QString &realm);
40 QVariant option(
const QString &opt)
const;
41 QVariantHash options()
const;
42 void setOption(
const QString &opt,
const QVariant &value);
47 void clear()
noexcept;
49 friend class QAuthenticatorPrivate;
50 QAuthenticatorPrivate *d;
The QAuthenticator class provides an authentication object.
QString errorDetail(QNetworkReply::NetworkError errorCode, QIODevice *socket, const QString &extraDetail=QString())
qint64 uncompressedBytesAvailableNextBlock(const QHttpNetworkReply &reply) const
void startNetworkLayerStateLookup()
bool shouldEmitChannelError(QIODevice *socket)
void createAuthorization(QIODevice *socket, QHttpNetworkRequest &request)
void emitReplyError(QIODevice *socket, QHttpNetworkReply *reply, QNetworkReply::NetworkError errorCode)
void fillPipeline(QIODevice *socket)
QUrl parseRedirectResponse(QIODevice *socket, QHttpNetworkReply *reply)
QHttpNetworkRequest predictNextRequest() const
NetworkLayerPreferenceState
void prepareRequest(HttpMessagePair &request)
void startHostInfoLookup()
QHttpNetworkConnectionPrivate(quint16 connectionCount, const QString &hostName, quint16 port, bool encrypt, bool isLocalSocket, QHttpNetworkConnection::ConnectionType type)
void emitProxyAuthenticationRequired(const QHttpNetworkConnectionChannel *chan, const QNetworkProxy &proxy, QAuthenticator *auth)
NetworkLayerPreferenceState networkLayerState
void copyCredentials(int fromChannel, QAuthenticator *auth, bool isProxy)
std::shared_ptr< QSslContext > sslContext
void _q_connectDelayedChannel()
static const int defaultRePipelineLength
void networkLayerDetected(QAbstractSocket::NetworkLayerProtocol protocol)
void _q_startNextRequest()
void requeueRequest(const HttpMessagePair &pair)
QList< HttpMessagePair > lowPriorityQueue
void removeReply(QHttpNetworkReply *reply)
void _q_hostLookupFinished(const QHostInfo &info)
QHttpNetworkReply * predictNextRequestsReply() const
QList< HttpMessagePair > highPriorityQueue
void updateChannel(int i, const HttpMessagePair &messagePair)
bool handleAuthenticateChallenge(QIODevice *socket, QHttpNetworkReply *reply, bool isProxy, bool &resend)
QHttpNetworkReply * queueRequest(const QHttpNetworkRequest &request)
QHttpNetworkConnectionChannel *const channels
void readMoreLater(QHttpNetworkReply *reply)
bool fillPipeline(QList< HttpMessagePair > &queue, QHttpNetworkConnectionChannel &channel)
bool dequeueRequest(QIODevice *socket)
QTimer delayedConnectionTimer
QHttp2Configuration http2Parameters
QNetworkProxy networkProxy
int indexOf(QIODevice *socket) const
~QHttpNetworkConnectionPrivate()
qint64 uncompressedBytesAvailable(const QHttpNetworkReply &reply) const
static const int defaultPipelineLength
static ParseRedirectResult parseRedirectResponse(QHttpNetworkReply *reply)
std::pair< QHttpNetworkRequest, QHttpNetworkReply * > HttpMessagePair
QNetworkReply::NetworkError errorCode