Protocols::Http::RequestHeader Class Reference

#include <RequestHeader.h> [code]

Inherits Protocols::Http::HeaderBase.

Inheritance diagram for Protocols::Http::RequestHeader:

Inheritance graph
[legend]
Collaboration diagram for Protocols::Http::RequestHeader:

Collaboration graph
[legend]
List of all members.

Detailed Description

Implements an HTTP request header.

RequestHeader extends HeaderBase and implement the request start line:

	Request-Line   = Method SP Request-URI SP HTTP-Version CRLF
	

Definition at line 39 of file RequestHeader.h.

Public Member Functions

auto_ptr< DataBasecopy () const
 Virtual copy constructor.
 RequestHeader (const QByteArray &method=QByteArray(), const QByteArray &path=QByteArray(), int majorVersion=1, int minorVersion=1)
 Constructs a RequestHeader object.
QByteArray method () const
 Returns the HTTP method from the Request-Line of the HTTP request.
QByteArray path () const
 Returns the HTTP path from the Request-Line of the HTTP request.
int majorVersion () const
 Returns the HTTP major version from the Request-Line of the HTTP request.
int minorVersion () const
 Returns the HTTP minor version from the Request-Line of the HTTP request.

Private Member Functions

bool parseStartLine (const QByteArray &startLine)
 Reimplements the base class function to parse the first header line.
QByteArray rawStartLine () const
 Reimplements the base class function to generate the first header line.
 Q_DECLARE_SHARED_DATA (Data)

Classes

class  Data
 Extends the implicitly shared private data of the base class. More...


Constructor & Destructor Documentation

RequestHeader::RequestHeader const QByteArray &  method = QByteArray(),
const QByteArray &  path = QByteArray(),
int  majorVersion = 1,
int  minorVersion = 1
 

Constructs a RequestHeader object.

Parameters:
method is the HTTP method to use.
path is the HTTP Request-Uri to use.
majorVersion is the major HTTP version to use.
minorVersion is the minor HTTP version to use.

Definition at line 40 of file RequestHeader.cpp.


Member Function Documentation

auto_ptr< DataBase > RequestHeader::copy  )  const [virtual]
 

Virtual copy constructor.

Reimplemented from Protocols::Http::HeaderBase.

Definition at line 28 of file RequestHeader.cpp.

int Protocols::Http::RequestHeader::majorVersion  )  const [inline]
 

Returns the HTTP major version from the Request-Line of the HTTP request.

Definition at line 83 of file RequestHeader.h.

QByteArray Protocols::Http::RequestHeader::method  )  const [inline]
 

Returns the HTTP method from the Request-Line of the HTTP request.

Definition at line 75 of file RequestHeader.h.

int Protocols::Http::RequestHeader::minorVersion  )  const [inline]
 

Returns the HTTP minor version from the Request-Line of the HTTP request.

Definition at line 87 of file RequestHeader.h.

bool RequestHeader::parseStartLine const QByteArray &  startLine  )  [private, virtual]
 

Reimplements the base class function to parse the first header line.

Reimplemented from Protocols::Http::HeaderBase.

Definition at line 54 of file RequestHeader.cpp.

QByteArray Protocols::Http::RequestHeader::path  )  const [inline]
 

Returns the HTTP path from the Request-Line of the HTTP request.

Definition at line 79 of file RequestHeader.h.

Protocols::Http::RequestHeader::Q_DECLARE_SHARED_DATA Data   )  [private]
 

QByteArray RequestHeader::rawStartLine  )  const [private, virtual]
 

Reimplements the base class function to generate the first header line.

Reimplemented from Protocols::Http::HeaderBase.

Definition at line 72 of file RequestHeader.cpp.


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