Qt 4.8
|
#include <qnetworkrequest_p.h>
Public Types | |
typedef QHash< QNetworkRequest::Attribute, QVariant > | AttributesMap |
typedef QHash< QNetworkRequest::KnownHeaders, QVariant > | CookedHeadersMap |
typedef QPair< QByteArray, QByteArray > | RawHeaderPair |
typedef QList< RawHeaderPair > | RawHeadersList |
Public Functions | |
RawHeadersList | allRawHeaders () const |
RawHeadersList::ConstIterator | findRawHeader (const QByteArray &key) const |
QList< QByteArray > | rawHeadersKeys () const |
void | setAllRawHeaders (const RawHeadersList &list) |
Sets the internal raw headers list to match list. More... | |
void | setCookedHeader (QNetworkRequest::KnownHeaders header, const QVariant &value) |
void | setRawHeader (const QByteArray &key, const QByteArray &value) |
Static Public Functions | |
static QDateTime | fromHttpDate (const QByteArray &value) |
static QByteArray | toHttpDate (const QDateTime &dt) |
Public Variables | |
AttributesMap | attributes |
CookedHeadersMap | cookedHeaders |
QWeakPointer< QObject > | originatingObject |
RawHeadersList | rawHeaders |
Private Functions | |
void | parseAndSetHeader (const QByteArray &key, const QByteArray &value) |
void | setRawHeaderInternal (const QByteArray &key, const QByteArray &value) |
Definition at line 66 of file qnetworkrequest_p.h.
Definition at line 72 of file qnetworkrequest_p.h.
Definition at line 71 of file qnetworkrequest_p.h.
Definition at line 69 of file qnetworkrequest_p.h.
Definition at line 70 of file qnetworkrequest_p.h.
QNetworkHeadersPrivate::RawHeadersList QNetworkHeadersPrivate::allRawHeaders | ( | ) | const |
Definition at line 853 of file qnetworkrequest.cpp.
QNetworkHeadersPrivate::RawHeadersList::ConstIterator QNetworkHeadersPrivate::findRawHeader | ( | const QByteArray & | key | ) | const |
Definition at line 842 of file qnetworkrequest.cpp.
Referenced by QNetworkAccessHttpBackend::fetchCacheMetaData(), QNetworkRequest::hasRawHeader(), QNetworkAccessHttpBackend::loadFromCacheIfAllowed(), QNetworkRequest::rawHeader(), and QNetworkAccessHttpBackend::replyDownloadMetaData().
|
static |
Definition at line 1026 of file qnetworkrequest.cpp.
Referenced by QNetworkAccessHttpBackend::fetchCacheMetaData(), QNetworkAccessHttpBackend::loadFromCacheIfAllowed(), and parseHttpDate().
|
private |
Definition at line 946 of file qnetworkrequest.cpp.
QList< QByteArray > QNetworkHeadersPrivate::rawHeadersKeys | ( | ) | const |
Definition at line 858 of file qnetworkrequest.cpp.
Referenced by QNetworkRequest::rawHeaderList().
void QNetworkHeadersPrivate::setAllRawHeaders | ( | const RawHeadersList & | list | ) |
Sets the internal raw headers list to match list.
If list contains duplicates, they will be stored, but only the first one is usually accessed.
Definition at line 890 of file qnetworkrequest.cpp.
Referenced by QNetworkAccessHttpBackend::fetchCacheMetaData(), QNetworkAccessHttpBackend::loadFromCacheIfAllowed(), and QNetworkAccessHttpBackend::replyDownloadMetaData().
void QNetworkHeadersPrivate::setCookedHeader | ( | QNetworkRequest::KnownHeaders | header, |
const QVariant & | value | ||
) |
Definition at line 901 of file qnetworkrequest.cpp.
Referenced by QHttpPart::setHeader(), QNetworkRequest::setHeader(), and QNetworkAccessBackend::setHeader().
void QNetworkHeadersPrivate::setRawHeader | ( | const QByteArray & | key, |
const QByteArray & | value | ||
) |
Definition at line 869 of file qnetworkrequest.cpp.
Referenced by QNetworkAccessHttpBackend::fetchCacheMetaData(), QHttpPart::setRawHeader(), QNetworkRequest::setRawHeader(), and QNetworkAccessBackend::setRawHeader().
|
private |
Definition at line 927 of file qnetworkrequest.cpp.
|
static |
Definition at line 1063 of file qnetworkrequest.cpp.
Referenced by headerValue(), and QNetworkAccessHttpBackend::loadFromCacheIfAllowed().
AttributesMap QNetworkHeadersPrivate::attributes |
Definition at line 76 of file qnetworkrequest_p.h.
Referenced by QNetworkRequest::attribute(), QNetworkReplyImplPrivate::initCacheSaveDevice(), QNetworkRequestPrivate::operator==(), QNetworkReplyPrivate::QNetworkReplyPrivate(), QNetworkReplyImplPrivate::redirectionRequested(), QNetworkRequest::setAttribute(), and QNetworkAccessBackend::setAttribute().
CookedHeadersMap QNetworkHeadersPrivate::cookedHeaders |
QWeakPointer<QObject> QNetworkHeadersPrivate::originatingObject |
Definition at line 77 of file qnetworkrequest_p.h.
Referenced by QNetworkRequest::originatingObject(), and QNetworkRequest::setOriginatingObject().
RawHeadersList QNetworkHeadersPrivate::rawHeaders |
Definition at line 74 of file qnetworkrequest_p.h.
Referenced by QNetworkAccessHttpBackend::fetchCacheMetaData(), QNetworkRequest::hasRawHeader(), QNetworkAccessHttpBackend::loadFromCacheIfAllowed(), QHttpPartPrivate::operator==(), QNetworkRequestPrivate::operator==(), QNetworkRequest::rawHeader(), and QNetworkAccessHttpBackend::replyDownloadMetaData().