Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QNetworkHeadersPrivate Class Reference

#include <qnetworkrequest_p.h>

+ Inheritance diagram for QNetworkHeadersPrivate:
+ Collaboration diagram for QNetworkHeadersPrivate:

Public Types

typedef QPair< QByteArray, QByteArrayRawHeaderPair
 
typedef QList< RawHeaderPairRawHeadersList
 
typedef QHash< QNetworkRequest::KnownHeaders, QVariantCookedHeadersMap
 
typedef QHash< QNetworkRequest::Attribute, QVariantAttributesMap
 

Public Member Functions

RawHeadersList::ConstIterator findRawHeader (const QByteArray &key) const
 
RawHeadersList allRawHeaders () const
 
QList< QByteArrayrawHeadersKeys () const
 
void setRawHeader (const QByteArray &key, const QByteArray &value)
 
void setAllRawHeaders (const RawHeadersList &list)
 
void setCookedHeader (QNetworkRequest::KnownHeaders header, const QVariant &value)
 

Static Public Member Functions

static QDateTime fromHttpDate (const QByteArray &value)
 
static QByteArray toHttpDate (const QDateTime &dt)
 

Public Attributes

RawHeadersList rawHeaders
 
CookedHeadersMap cookedHeaders
 
AttributesMap attributes
 
QPointer< QObjectoriginatingObject
 

Detailed Description

Definition at line 30 of file qnetworkrequest_p.h.

Member Typedef Documentation

◆ AttributesMap

◆ CookedHeadersMap

◆ RawHeaderPair

◆ RawHeadersList

Member Function Documentation

◆ allRawHeaders()

QNetworkHeadersPrivate::RawHeadersList QNetworkHeadersPrivate::allRawHeaders ( ) const

Definition at line 1329 of file qnetworkrequest.cpp.

References rawHeaders.

◆ findRawHeader()

QNetworkHeadersPrivate::RawHeadersList::ConstIterator QNetworkHeadersPrivate::findRawHeader ( const QByteArray key) const

Definition at line 1318 of file qnetworkrequest.cpp.

References Qt::CaseInsensitive, QList< T >::constBegin(), QList< T >::constEnd(), it, and rawHeaders.

Referenced by QNetworkReplyHttpImplPrivate::fetchCacheMetaData(), QNetworkRequest::hasRawHeader(), QNetworkProxy::hasRawHeader(), QNetworkReplyHttpImplPrivate::loadFromCacheIfAllowed(), QNetworkRequest::rawHeader(), QNetworkProxy::rawHeader(), and QNetworkReplyHttpImplPrivate::replyDownloadMetaData().

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

◆ fromHttpDate()

QDateTime QNetworkHeadersPrivate::fromHttpDate ( const QByteArray value)
static

Definition at line 1487 of file qnetworkrequest.cpp.

References QLocale::c(), QString::fromLatin1(), QDateTime::isValid(), name_to_month(), pos, QDateTime::setTimeZone(), Qt::TextDate, and QTimeZone::UTC.

Referenced by QNetworkReplyHttpImplPrivate::fetchCacheMetaData(), QNetworkReplyHttpImplPrivate::loadFromCacheIfAllowed(), and parseHttpDate().

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

◆ rawHeadersKeys()

QList< QByteArray > QNetworkHeadersPrivate::rawHeadersKeys ( ) const

Definition at line 1334 of file qnetworkrequest.cpp.

References QList< T >::constBegin(), QList< T >::constEnd(), it, rawHeaders, and QList< T >::size().

Referenced by QNetworkRequest::rawHeaderList(), and QNetworkProxy::rawHeaderList().

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

◆ setAllRawHeaders()

void QNetworkHeadersPrivate::setAllRawHeaders ( const RawHeadersList list)

Sets the internal raw headers list to match list. The cooked headers will also be updated.

If list contains duplicates, they will be stored, but only the first one is usually accessed.

Definition at line 1364 of file qnetworkrequest.cpp.

References QHash< Key, T >::clear(), QList< T >::constBegin(), QList< T >::constEnd(), cookedHeaders, it, list, and rawHeaders.

Referenced by QNetworkReplyHttpImplPrivate::fetchCacheMetaData(), QNetworkReplyHttpImplPrivate::loadFromCacheIfAllowed(), and QNetworkReplyHttpImplPrivate::replyDownloadMetaData().

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

◆ setCookedHeader()

void QNetworkHeadersPrivate::setCookedHeader ( QNetworkRequest::KnownHeaders  header,
const QVariant value 
)

Definition at line 1375 of file qnetworkrequest.cpp.

References cookedHeaders, header(), headerName(), headerValue(), QHash< Key, T >::insert(), QByteArray::isEmpty(), qWarning, and QHash< Key, T >::remove().

Referenced by QNetworkRequest::setHeader(), QHttpPart::setHeader(), and QNetworkProxy::setHeader().

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

◆ setRawHeader()

void QNetworkHeadersPrivate::setRawHeader ( const QByteArray key,
const QByteArray value 
)

Definition at line 1346 of file qnetworkrequest.cpp.

Referenced by QNetworkReplyHttpImplPrivate::fetchCacheMetaData(), QNetworkReplyHttpImplPrivate::sendCacheContents(), QHttpPart::setRawHeader(), QNetworkRequest::setRawHeader(), and QNetworkProxy::setRawHeader().

+ Here is the caller graph for this function:

◆ toHttpDate()

QByteArray QNetworkHeadersPrivate::toHttpDate ( const QDateTime dt)
static

Definition at line 1531 of file qnetworkrequest.cpp.

References QLocale::c(), QString::toLatin1(), QLocale::toString(), and QDateTime::toUTC().

Referenced by headerValue(), and QNetworkReplyHttpImplPrivate::loadFromCacheIfAllowed().

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

Member Data Documentation

◆ attributes

◆ cookedHeaders

◆ originatingObject

QPointer<QObject> QNetworkHeadersPrivate::originatingObject

◆ rawHeaders


The documentation for this class was generated from the following files: