Wexus2 0.20
wexus::HTTPRequest Class Reference

#include <HTTP.h>

List of all members.

Public Types

typedef QVariantMap ClientCookies

Public Member Functions

const QString & request (void) const
const QString & query (void) const
const QString & referer (void) const
const QString & userAgent (void) const
qint64 contentLength (void) const
QIODevice * input (void) const
const ClientCookies & cookies (void) const
ClientCookies & cookies (void)

Protected Member Functions

int parseCookies (const QString &raw_cookie_str)

Protected Attributes

QString dm_request
QString dm_query
QString dm_referer
QString dm_useragent
qint64 dm_contentlength
QIODevice * dm_inputdev
ClientCookies dm_clientcookies

Detailed Description

All the information in a HTTPRequest. The handler can use this information to compose their HTTPReply.

Author:
Aleksander Demko

Member Function Documentation

qint64 wexus::HTTPRequest::contentLength ( void  ) const [inline]

The value of the content length field. Always will be >=0, even if it wasn't set in the headers.

Author:
Aleksander Demko
ClientCookies& wexus::HTTPRequest::cookies ( void  ) [inline]

Returns the cookies sent by the client. non-const version. Callers can fiddle with the cookie map for convience.

Author:
Aleksander Demko
const ClientCookies& wexus::HTTPRequest::cookies ( void  ) const [inline]

Returns the cookies sent by the client.

Author:
Aleksander Demko
QIODevice* wexus::HTTPRequest::input ( void  ) const [inline]

Returns the input device that contains any data sent after the headers.

Note that some classes will already process this stream (like wexus::FormParams) QIODevice seem to always be passed by ptr.

Author:
Aleksander Demko
int wexus::HTTPRequest::parseCookies ( const QString &  raw_cookie_str) [protected]

helper function that decendants can use. parse out the cookies from raw_cookie_str and fill dm_clientcookies with the found cookies never fails (well, never reports failure returns the number of cookies parsed


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Enumerator