93 end = rawHeaders.constEnd();
94 for ( ; it !=
end; ++
it) {
95 if (it->first.toLower() ==
"cache-control" &&
96 it->second.toLower().contains(
"must-revalidate")) {
104 if (redirectionTarget.
isValid()) {
120 #if defined(QNETWORKACCESSCACHEBACKEND_DEBUG) 121 qDebug() <<
"Successfully sent cache:" <<
url();
The QVariant class acts like a union for the most common Qt data types.
#define QT_END_NAMESPACE
This macro expands to.
void setAttribute(QNetworkRequest::Attribute code, const QVariant &value)
virtual void close()
First emits aboutToClose(), then closes the device and sets its OpenMode to NotOpen.
#define it(className, varName)
void downstreamReadyWrite()
~QNetworkAccessCacheBackend()
The QString class provides a Unicode character string.
const T value(const Key &key) const
Returns the value associated with the key.
void closeUpstreamChannel()
void setParent(QObject *)
Makes the object a child of parent.
static QString translate(const char *context, const char *key, const char *disambiguation=0, Encoding encoding=CodecForTr)
virtual QIODevice * data(const QUrl &url)=0
Returns the data associated with url.
Q_CORE_EXPORT void qDebug(const char *,...)
static QString toString(Register *reg, int type, bool *ok=0)
#define QT_BEGIN_NAMESPACE
This macro expands to.
void closeDownstreamChannel()
QNetworkAccessCacheBackend()
void setRawHeader(const QByteArray &headerName, const QByteArray &value)
QNetworkAccessManager::Operation operation() const
QUrl toUrl() const
Returns the variant as a QUrl if the variant has type() Url ; otherwise returns an invalid QUrl...
QAbstractNetworkCache * networkCache() const
#define Q_ASSERT_X(cond, where, what)
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
void error(QNetworkReply::NetworkError code, const QString &errorString)
const_iterator ConstIterator
Qt-style synonym for QList::const_iterator.
virtual QNetworkCacheMetaData metaData(const QUrl &url)=0
Returns the meta data for the url url.
void writeDownstreamData(QByteDataBuffer &list)
void setCachingEnabled(bool enable)
bool isValid() const
Returns true if the storage type of this variant is not QVariant::Invalid; otherwise returns false...
static const KeyPair *const end
The QIODevice class is the base interface class of all I/O devices in Qt.
void redirectionRequested(const QUrl &destination)
The QAbstractNetworkCache class provides the interface for cache implementations. ...