Details
-
Task
-
Resolution: Done
-
P3: Somewhat important
-
None
-
None
-
21
-
925ce9e90 (dev), 2c65f2cd1 (dev), 789cbeacd (dev), 7897ec88f (dev), a08ba69d4 (6.7), 6ceab7ec3 (6.7), 54dcacf5c (6.7)
-
Foundation Sprint 91, Foundation Sprint 92, Foundation Sprint 93, Foundations Sprint 94, Foundations Sprint 95, Foundations Sprint 96, Foundations Sprint 97
Description
Provides basic API for adding / removing / reading http headers.
This class is going to be used as an HTTP Headers container and will be used in
List of required methods: (pseudocode)
bool hasHeader(QByteArrayView name) const; QList<QByteArrayView> value(QByteArrayView name) const; void addHeader(QByteArray name, QByteArray value); void addHeaders(QByteArray name, QList<QByteArray> values); void setHeader(QByteArray name, QByteArray value); void setHeaders(QByteArray name, QList<QByteArray> values); void clearHeader(QByteArrayView name); void clearHeaders();
Additionally, known headers should be supported (whole list).
QList<QByteArrayView> value(QHttpHeaders::KnownHeader header) const;
bool addHeader(QHttpHeaders::KnownHeader header, QByteArray value);
bool addHeaders(QHttpHeaders::KnownHeader header, QList<QByteArray> values);
bool setHeader(QHttpHeaders::KnownHeader header, QByteArray value);
bool setHeaders(QHttpHeaders::KnownHeader header, QList<QByteArray> values);
void clearHeader(QHttpHeaders::KnownHeader header);
Attachments
Issue Links
- is required for
-
QTBUG-107749 Use QHttpHeaders in QHttpServerResponse
- Closed
-
QTBUG-107750 Use QHttpHeaders in QHttpServerRequest
- Closed
-
QTBUG-107751 Use QHttpHeaders in QNetworkRequest
- Closed
-
QTBUG-120133 Use QHttpHeaders in QHttpHeaderParser (private API)
- Closed
-
QTBUG-120135 Use QHttpHeaders in QHttpServerResponder
- Closed
- relates to
-
QTBUG-114633 C++ RESTful client development easing
- Closed
- mentioned in
-
Page Loading...
For Gerrit Dashboard: QTBUG-107042 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
506936,34 | Add QHttpHeaders class | dev | qt/qtbase | Status: MERGED | +2 | 0 |
510407,2 | WIP Add encoding helper to QHttpHeaders | dev | qt/qtbase | Status: ABANDONED | -2 | 0 |
525448,3 | tst_QHttpHeaders: DRY the value() test | dev | qt/qtbase | Status: MERGED | +2 | 0 |
525449,5 | QHttpHeaders: add value(name, fall-back) | dev | qt/qtbase | Status: MERGED | +2 | 0 |
525457,2 | tst_QHttpHeaders: don't convert QAnyStringView | dev | qt/qtbase | Status: MERGED | +2 | 0 |
529123,2 | tst_QHttpHeaders: don't convert QAnyStringView | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
529126,2 | tst_QHttpHeaders: DRY the value() test | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
529127,3 | QHttpHeaders: add value(name, fall-back) | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |