QDjango: QDjangoHttpRequest Class Reference

QDjango

Public Member Functions | Friends | List of all members
QDjangoHttpRequest Class Reference
Http

The QDjangoHttpRequest class represents an HTTP request. More...

`#include <QDjangoHttpRequest.h>`

## Public Member Functions
| QDjangoHttpRequest ()
| ~QDjangoHttpRequest ()
QByteArray | body () const
QString | get (const QString &key) const
QString | meta (const QString &key) const
QString | method () const
QString | path () const
QString | post (const QString &key) const

## Friends
class | QDjangoFastCgiConnection
class | QDjangoHttpConnection
class | QDjangoHttpTestRequest
class | tst_QDjangoHttpController
class | tst_QDjangoHttpRequest

## Detailed Description

The QDjangoHttpRequest class represents an HTTP request.

## Constructor & Destructor Documentation

## ◆ QDjangoHttpRequest()

QDjangoHttpRequest::QDjangoHttpRequest | ( |  | ) |

Constructs a new HTTP request.

## ◆ ~QDjangoHttpRequest()

QDjangoHttpRequest::~QDjangoHttpRequest | ( |  | ) |

Destroys the HTTP request.

## Member Function Documentation

## ◆ body()

QByteArray QDjangoHttpRequest::body | ( |  | ) | const

Returns the raw body of the HTTP request.

## ◆ get()

QString QDjangoHttpRequest::get | ( | const QString & | key | ) | const

Returns the GET data for the given key.

## ◆ meta()

QString QDjangoHttpRequest::meta | ( | const QString & | key | ) | const

Returns the specified HTTP request header.

Parameters

  key |

## ◆ method()

QString QDjangoHttpRequest::method | ( |  | ) | const

Returns the HTTP request's method (e.g. GET, POST).

## ◆ path()

QString QDjangoHttpRequest::path | ( |  | ) | const

Returns the HTTP request's path.

## ◆ post()

QString QDjangoHttpRequest::post | ( | const QString & | key | ) | const

Returns the POST data for the given key.

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

- QDjangoHttpRequest.h
- QDjangoHttpRequest.cpp