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

#include <thttpheader.h>

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

Public Member Functions

 THttpRequestHeader ()
 
 THttpRequestHeader (const THttpRequestHeader &other)
 
 THttpRequestHeader (const QByteArray &str)
 
THttpRequestHeaderoperator= (const THttpRequestHeader &other)
 
const QByteArray & method () const
 
const QByteArray & path () const
 
void setRequest (const QByteArray &method, const QByteArray &path, int majorVer=1, int minorVer=1)
 
QByteArray cookie (const QString &name) const
 
QList< TCookiecookies () const
 
virtual QByteArray toByteArray () const
 
- 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 THttpRequestHeader class contains request header information for HTTP.

Constructor & Destructor Documentation

THttpRequestHeader::THttpRequestHeader ( )

Constructor.

THttpRequestHeader::THttpRequestHeader ( const THttpRequestHeader other)

Copy constructor.

THttpRequestHeader::THttpRequestHeader ( const QByteArray &  str)

Constructs an HTTP request header by parsing str.

Member Function Documentation

QByteArray THttpRequestHeader::cookie ( const QString &  name) const

Returns the cookie associated with the name.

QList< TCookie > THttpRequestHeader::cookies ( ) const

Returns the all cookies.

const QByteArray & THttpRequestHeader::method ( ) const
inline

Returns the method of the HTTP request header.

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

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

const QByteArray & THttpRequestHeader::path ( ) const
inline

Returns the request-URI of the HTTP request header.

void THttpRequestHeader::setRequest ( const QByteArray &  method,
const QByteArray &  path,
int  majorVer = 1,
int  minorVer = 1 
)

Sets the request method to method, the request-URI to path and the protocol-version to majorVer and minorVer.

QByteArray THttpRequestHeader::toByteArray ( ) const
virtual

Returns a byte array representation of the HTTP request header.

Reimplemented from THttpHeader.


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