TreeFrogFramework  1.18
Public Member Functions | List of all members
THttpResponseHeader Class Reference

#include <thttpheader.h>

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

Public Member Functions

 THttpResponseHeader ()
 
 THttpResponseHeader (const THttpResponseHeader &other)
 
 THttpResponseHeader (const QByteArray &str)
 
int statusCode () const
 
void setStatusLine (int code, const QByteArray &text=QByteArray(), int majorVer=1, int minorVer=1)
 
virtual QByteArray toByteArray () const
 
THttpResponseHeaderoperator= (const THttpResponseHeader &other)
 
- Public Member Functions inherited from THttpHeader
 THttpHeader ()
 
 THttpHeader (const THttpHeader &other)
 
 THttpHeader (const QByteArray &str)
 
virtual ~THttpHeader ()
 
THttpHeaderoperator= (const THttpHeader &other)
 
virtual int majorVersion () const
 
virtual int minorVersion () const
 
- 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
 
QList< QByteArray > 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)
 
uint contentLength () const
 
void setContentLength (int len)
 
QByteArray date () const
 
void setDate (const QByteArray &date)
 
void setDate (const QDateTime &dateTime)
 
void setCurrentDate ()
 
TInternetMessageHeaderoperator= (const TInternetMessageHeader &other)
 

Additional Inherited Members

- Protected Types inherited from TInternetMessageHeader
typedef QPair< QByteArray, QByteArray > RawHeaderPair
 
typedef QList< RawHeaderPairRawHeaderPairList
 
- Protected Member Functions inherited from TInternetMessageHeader
void parse (const QByteArray &header)
 
- Protected Attributes inherited from THttpHeader
int majVersion
 
int minVersion
 
- Protected Attributes inherited from TInternetMessageHeader
RawHeaderPairList headerPairList
 

Detailed Description

The THttpResponseHeader class contains response header information for HTTP.

Constructor & Destructor Documentation

THttpResponseHeader::THttpResponseHeader ( )

Constructor.

THttpResponseHeader::THttpResponseHeader ( const THttpResponseHeader other)

Copy constructor.

THttpResponseHeader::THttpResponseHeader ( const QByteArray &  str)

Constructs an HTTP response header by parsing str.

Member Function Documentation

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

Assigns other to this HTTP response header and returns a reference to this header.

void THttpResponseHeader::setStatusLine ( int  code,
const QByteArray &  text = QByteArray(),
int  majorVer = 1,
int  minorVer = 1 
)

Sets the status code to code, the reason phrase to text and the protocol-version to majorVer and minorVer.

int THttpResponseHeader::statusCode ( ) const
inline

Returns the status code of the HTTP response header.

QByteArray THttpResponseHeader::toByteArray ( ) const
virtual

Returns a byte array representation of the HTTP response header.

Reimplemented from THttpHeader.


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