Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QHttpNetworkHeaderPrivate Class Reference

#include <qhttpnetworkheader_p.h>

+ Inheritance diagram for QHttpNetworkHeaderPrivate:
+ Collaboration diagram for QHttpNetworkHeaderPrivate:

Public Member Functions

 QHttpNetworkHeaderPrivate (const QUrl &newUrl=QUrl())
 
 QHttpNetworkHeaderPrivate (const QHttpNetworkHeaderPrivate &other)=default
 
qint64 contentLength () const
 
void setContentLength (qint64 length)
 
QByteArray headerField (QByteArrayView name, const QByteArray &defaultValue=QByteArray()) const
 
QList< QByteArrayheaderFieldValues (QByteArrayView name) const
 
void setHeaderField (const QByteArray &name, const QByteArray &data)
 
void prependHeaderField (const QByteArray &name, const QByteArray &data)
 
void clearHeaders ()
 
QHttpHeaders headers () const
 
bool operator== (const QHttpNetworkHeaderPrivate &other) const
 
- Public Member Functions inherited from QSharedData
 QSharedData () noexcept
 Constructs a QSharedData object with a reference count of 0.
 
 QSharedData (const QSharedData &) noexcept
 Constructs a QSharedData object with reference count 0.
 
QSharedDataoperator= (const QSharedData &)=delete
 
 ~QSharedData ()=default
 

Public Attributes

QUrl url
 
QHttpHeaderParser parser
 
- Public Attributes inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Definition at line 49 of file qhttpnetworkheader_p.h.

Constructor & Destructor Documentation

◆ QHttpNetworkHeaderPrivate() [1/2]

QT_BEGIN_NAMESPACE QHttpNetworkHeaderPrivate::QHttpNetworkHeaderPrivate ( const QUrl & newUrl = QUrl())

Definition at line 10 of file qhttpnetworkheader.cpp.

◆ QHttpNetworkHeaderPrivate() [2/2]

QHttpNetworkHeaderPrivate::QHttpNetworkHeaderPrivate ( const QHttpNetworkHeaderPrivate & other)
default

Member Function Documentation

◆ clearHeaders()

void QHttpNetworkHeaderPrivate::clearHeaders ( )

Definition at line 61 of file qhttpnetworkheader.cpp.

References QHttpHeaderParser::clearHeaders(), and parser.

Referenced by QHttpNetworkRequest::clearHeaders().

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

◆ contentLength()

qint64 QHttpNetworkHeaderPrivate::contentLength ( ) const

Definition at line 15 of file qhttpnetworkheader.cpp.

References QHttpHeaderParser::firstHeaderField(), ok, parser, and QByteArray::toULongLong().

Referenced by QHttpNetworkRequest::contentLength(), QHttpNetworkReplyPrivate::expectContent(), QHttpNetworkReplyPrivate::readHeader(), and QHttpNetworkReplyPrivate::removeAutoDecompressHeader().

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

◆ headerField()

QByteArray QHttpNetworkHeaderPrivate::headerField ( QByteArrayView name,
const QByteArray & defaultValue = QByteArray() ) const

Definition at line 32 of file qhttpnetworkheader.cpp.

References headerFieldValues().

Referenced by QHttpNetworkRequest::headerField(), QHttpNetworkReplyPrivate::isCompressed(), and QHttpNetworkReplyPrivate::readHeader().

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

◆ headerFieldValues()

QList< QByteArray > QHttpNetworkHeaderPrivate::headerFieldValues ( QByteArrayView name) const

Definition at line 41 of file qhttpnetworkheader.cpp.

References QHttpHeaderParser::headerFieldValues(), and parser.

Referenced by headerField().

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

◆ headers()

QHttpHeaders QHttpNetworkHeaderPrivate::headers ( ) const

Definition at line 56 of file qhttpnetworkheader.cpp.

References QHttpHeaderParser::headers(), and parser.

Referenced by QHttpNetworkRequestPrivate::header().

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

◆ operator==()

bool QHttpNetworkHeaderPrivate::operator== ( const QHttpNetworkHeaderPrivate & other) const

Definition at line 66 of file qhttpnetworkheader.cpp.

References other(), and url.

Referenced by QHttpNetworkRequestPrivate::operator==().

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

◆ prependHeaderField()

void QHttpNetworkHeaderPrivate::prependHeaderField ( const QByteArray & name,
const QByteArray & data )

Definition at line 51 of file qhttpnetworkheader.cpp.

References parser, and QHttpHeaderParser::prependHeaderField().

Referenced by QHttpNetworkRequest::prependHeaderField().

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

◆ setContentLength()

void QHttpNetworkHeaderPrivate::setContentLength ( qint64 length)

Definition at line 27 of file qhttpnetworkheader.cpp.

References QByteArray::number(), and setHeaderField().

Referenced by QHttpNetworkRequest::setContentLength().

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

◆ setHeaderField()

void QHttpNetworkHeaderPrivate::setHeaderField ( const QByteArray & name,
const QByteArray & data )

Definition at line 46 of file qhttpnetworkheader.cpp.

References parser, and QHttpHeaderParser::setHeaderField().

Referenced by setContentLength(), and QHttpNetworkRequest::setHeaderField().

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

Member Data Documentation

◆ parser

◆ url

QUrl QHttpNetworkHeaderPrivate::url

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