|
tufao
1.3.0
An asynchronous web framework for C++ built on top of Qt
|
This class provides a representation of HTTP headers. More...
Inheritance diagram for Tufao::Headers:
Collaboration diagram for Tufao::Headers:Static Public Member Functions | |
| static TUFAO_EXPORT QByteArray | fromDateTime (const QDateTime &dateTime) |
Returns a RFC 1123 date time formatted string if dateTime. More... | |
| static TUFAO_EXPORT QDateTime | toDateTime (const QByteArray &headerValue, const QDateTime &defaultValue=QDateTime()) |
Try to decode headerValue using the most common http date time formats. More... | |
This class provides a representation of HTTP headers.
HTTP headers are string-based properties with case-insensitive keys.
|
static |
Returns a RFC 1123 date time formatted string if dateTime.
It's the standard date time format in HTTP.
|
static |
Try to decode headerValue using the most common http date time formats.
These formats are:
defaultValue if the conversion fails.