5#ifndef QNETWORKACCESSMANAGER_P_H
6#define QNETWORKACCESSMANAGER_P_H
19#include <QtNetwork/private/qtnetworkglobal_p.h>
25#include "private/qobject_p.h"
26#include "QtNetwork/qnetworkproxy.h"
29#if QT_CONFIG(settings)
30#include "qhstsstore_p.h"
33#if QT_CONFIG(settings)
40class QAbstractNetworkCache;
42class QNetworkCookieJar;
51#ifndef QT_NO_NETWORKPROXY
76 QUrl *urlForLastAuthentication,
77 bool allowAuthenticationReuse =
true);
80 const QAuthenticator *auth =
nullptr);
82#ifndef QT_NO_NETWORKPROXY
84 const QNetworkProxy &proxy,
86 QAuthenticator *authenticator,
87 QNetworkProxy *lastProxyAuthentication);
90 const QAuthenticator *auth =
nullptr);
97#if QT_CONFIG(http) || defined(Q_OS_WASM)
111#ifndef QT_NO_NETWORKPROXY
127#if QT_CONFIG(settings)
136 Q_DECLARE_PUBLIC(QNetworkAccessManager)
void cacheCredentials(const QUrl &url, const QAuthenticator *auth)
QNetworkAuthenticationCredential fetchCachedCredentials(const QUrl &url, const QAuthenticator *auth=nullptr)
Fetch the credential data from the credential cache.
QNetworkAuthenticationCredential fetchCachedProxyCredentials(const QNetworkProxy &proxy, const QAuthenticator *auth=nullptr)
void cacheProxyCredentials(const QNetworkProxy &proxy, const QAuthenticator *auth)
QNetworkRequest::RedirectPolicy redirectPolicy
QNetworkAuthenticationCredential * fetchCachedCredentials(const QUrl &url, const QAuthenticator *auth=nullptr)
QStringList backendSupportedSchemes() const
QList< QNetworkProxy > queryProxy(const QNetworkProxyQuery &query)
QNetworkReply * postProcess(QNetworkReply *reply)
QNetworkProxyFactory * proxyFactory
QNetworkAccessBackend * findBackend(QNetworkAccessManager::Operation op, const QNetworkRequest &request)
void proxyAuthenticationRequired(const QUrl &url, const QNetworkProxy &proxy, bool synchronous, QAuthenticator *authenticator, QNetworkProxy *lastProxyAuthentication)
QAbstractNetworkCache * networkCache
QNetworkAccessManagerPrivate()
bool defaultAccessControl
void _q_replyPreSharedKeyAuthenticationRequired(QSslPreSharedKeyAuthenticator *authenticator)
void createCookieJar() const
void ensureBackendPluginsLoaded()
std::chrono::milliseconds transferTimeout
void authenticationRequired(QAuthenticator *authenticator, QNetworkReply *reply, bool synchronous, QUrl &url, QUrl *urlForLastAuthentication, bool allowAuthenticationReuse=true)
void cacheProxyCredentials(const QNetworkProxy &proxy, const QAuthenticator *auth)
QNetworkCookieJar * cookieJar
std::shared_ptr< QNetworkAccessAuthenticationManager > authenticationManager
void cacheCredentials(const QUrl &url, const QAuthenticator *auth)
QNetworkAuthenticationCredential * fetchCachedProxyCredentials(const QNetworkProxy &proxy, const QAuthenticator *auth=nullptr)
~QNetworkAccessManagerPrivate()
void _q_replyFinished(QNetworkReply *reply)
void _q_replyEncrypted(QNetworkReply *reply)
void _q_replySslErrors(const QList< QSslError > &errors)
static Q_AUTOTEST_EXPORT void clearConnectionCache(QNetworkAccessManager *manager)
static Q_AUTOTEST_EXPORT void clearAuthenticationCache(QNetworkAccessManager *manager)
iterator findClosestMatch(const QString &domain)
void insert(const QString &domain, const QString &user, const QString &password)
virtual void dispose() override
QNetworkAuthenticationCache()
static QByteArray proxyAuthenticationKey(const QNetworkProxy &proxy, const QString &realm)
static QByteArray authenticationKey(const QUrl &url, const QString &realm)