Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qhttpthreaddelegate.cpp File Reference
#include "qhttpthreaddelegate_p.h"
#include <QThread>
#include <QTimer>
#include <QAuthenticator>
#include <QEventLoop>
#include <QCryptographicHash>
#include "private/qhttpnetworkreply_p.h"
#include "private/qnetworkaccesscache_p.h"
#include "private/qnoncontiguousbytedevice_p.h"
#include "moc_qhttpthreaddelegate_p.cpp"
+ Include dependency graph for qhttpthreaddelegate.cpp:

Go to the source code of this file.

Classes

class  QNetworkAccessCachedHttpConnection
 

Functions

static QNetworkReply::NetworkError statusCodeFromHttp (int httpStatusCode, const QUrl &url)
 
static QByteArray makeCacheKey (QUrl &url, QNetworkProxy *proxy, const QString &peerVerifyName)
 

Function Documentation

◆ makeCacheKey()

static QByteArray makeCacheKey ( QUrl url,
QNetworkProxy proxy,
const QString peerVerifyName 
)
static

Definition at line 92 of file qhttpthreaddelegate.cpp.

References copy(), QString::fromUtf8(), QUrl::FullyEncoded, QCryptographicHash::hash(), QNetworkProxy::hostName(), QNetworkProxy::HttpCachingProxy, QNetworkProxy::HttpProxy, QString::isEmpty(), isEncrypted(), QNetworkProxy::NoProxy, QNetworkProxy::password(), QNetworkProxy::port(), proxy, Q_UNUSED, QUrl::RemoveFragment, QUrl::RemovePath, QUrl::RemoveQuery, QUrl::RemoveUserInfo, QCryptographicHash::Sha1, QNetworkProxy::Socks5Proxy, QByteArray::toHex(), QString::toLatin1(), QString::toUtf8(), QNetworkProxy::type(), url, and QNetworkProxy::user().

Referenced by QHttpThreadDelegate::startRequest().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ statusCodeFromHttp()