Commit 55b8a57350fee26783b379d3897d38759903824f
QNAM: Add direct access to the RawHeader
Provide direct access to the header fields. This makes
QNetworkReplyHandler::sendResponseIfNedded drop out of
the profile on the loading_standalone test case.
Reviewed-By: Markus Goetz
| |   |
| 530 | 530 | return QByteArray(); |
| 531 | 531 | } |
| 532 | 532 | |
| const QList<QNetworkReply::RawHeaderPair>& QNetworkReply::rawHeaderPairs() const |
| { |
| Q_D(const QNetworkReply); |
| return d->rawHeaders; |
| } |
|
| 533 | 539 | /*! |
| 534 | 540 | Returns a list of headers fields that were sent by the remote |
| 535 | 541 | server, in the order that they were sent. Duplicate headers are |
| |   |
| 128 | 128 | QList<QByteArray> rawHeaderList() const; |
| 129 | 129 | QByteArray rawHeader(const QByteArray &headerName) const; |
| 130 | 130 | |
| typedef QPair<QByteArray, QByteArray> RawHeaderPair; |
| const QList<RawHeaderPair>& rawHeaderPairs() const; |
|
| 131 | 134 | // attributes |
| 132 | 135 | QVariant attribute(QNetworkRequest::Attribute code) const; |
| 133 | 136 | |