TreeFrogFramework 2.10
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TContentHeader Class Reference

#include <tcontentheader.h>

Inheritance diagram for TContentHeader:
Inheritance graph
[legend]
Collaboration diagram for TContentHeader:
Collaboration graph
[legend]

Public Member Functions

 TContentHeader ()
 
 TContentHeader (const TContentHeader &other)
 
 TContentHeader (const QByteArray &str)
 
virtual ~TContentHeader ()
 
TContentHeaderoperator= (const TContentHeader &other)
 
- Public Member Functions inherited from TInternetMessageHeader
 TInternetMessageHeader ()
 
 TInternetMessageHeader (const TInternetMessageHeader &other)
 
 TInternetMessageHeader (const QByteArray &str)
 
virtual ~TInternetMessageHeader ()
 
bool hasRawHeader (const QByteArray &key) const
 
QByteArray rawHeader (const QByteArray &key) const
 
QByteArrayList rawHeaderList () const
 
void setRawHeader (const QByteArray &key, const QByteArray &value)
 
void addRawHeader (const QByteArray &key, const QByteArray &value)
 
void removeAllRawHeaders (const QByteArray &key)
 
void removeRawHeader (const QByteArray &key)
 
bool isEmpty () const
 
void clear ()
 
QByteArray contentType () const
 
void setContentType (const QByteArray &type)
 
int64_t contentLength () const
 
void setContentLength (int64_t len)
 
QByteArray date () const
 
void setDate (const QByteArray &date)
 
void setDate (const QDateTime &dateTime)
 
void setCurrentDate ()
 
virtual QByteArray toByteArray () const
 
TInternetMessageHeaderoperator= (const TInternetMessageHeader &other)
 

Additional Inherited Members

- Protected Types inherited from TInternetMessageHeader
using RawHeaderPair = QPair< QByteArray, QByteArray >
 
using RawHeaderPairList = QList< RawHeaderPair >
 
- Protected Member Functions inherited from TInternetMessageHeader
void parse (const QByteArray &header)
 
- Protected Attributes inherited from TInternetMessageHeader
RawHeaderPairList _headerPairList
 
int64_t _contentLength {-1}
 

Detailed Description

The TContentHeader class contains content header information for HTTP.

Constructor & Destructor Documentation

◆ TContentHeader() [1/3]

TContentHeader::TContentHeader ( )

Constructor.

◆ TContentHeader() [2/3]

TContentHeader::TContentHeader ( const TContentHeader other)

Copy constructor.

◆ TContentHeader() [3/3]

TContentHeader::TContentHeader ( const QByteArray &  str)

Constructor.

◆ ~TContentHeader()

virtual TContentHeader::~TContentHeader ( )
inlinevirtual

Member Function Documentation

◆ operator=()

TContentHeader & TContentHeader::operator= ( const TContentHeader other)

Assigns other to this content header and returns a reference to this content header.


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