The QDjangoHttpController class provides static methods for replying to HTTP requests.
More...
#include <QDjangoHttpController.h>
The QDjangoHttpController class provides static methods for replying to HTTP requests.
bool QDjangoHttpController::getBasicAuth |
( |
const QDjangoHttpRequest & |
request, |
|
|
QString & |
username, |
|
|
QString & |
password |
|
) |
| |
|
static |
Extract basic credentials from an HTTP request.
Returns true if credentials were provider, false otherwise.
QString QDjangoHttpController::httpDateTime |
( |
const QDateTime & |
dt | ) |
|
|
static |
Converts a QDateTime to an HTTP datetime string.
QDateTime QDjangoHttpController::httpDateTime |
( |
const QString & |
str | ) |
|
|
static |
Converts an HTTP datetime string to a QDateTime.
Respond to an HTTP request with an authorization error.
- Parameters
-
Respond to a malformed HTTP request.
- Parameters
-
Respond to an HTTP request with an internal server error.
- Parameters
-
Respond to an HTTP request with a not found error.
- Parameters
-
Respond to an HTTP request with a redirect.
- Parameters
-
request | |
url | The URL to which the user is redirected. |
permanent | Whether the redirect is permanent. |
Respond to an HTTP request for a static file.
- Parameters
-
request | |
docPath | The path to the document, such that it can be opened using a QFile. |
expires | An optional expiry date. |
The documentation for this class was generated from the following files: