Commit 55b8a57350fee26783b379d3897d38759903824f

  • avatar
  • Markus Goetz (Committer)
  • Wed Nov 11 10:44:22 GMT 2009
  • avatar
  • zecke (Author)
  • Mon Sep 21 20:48:25 UTC 2009
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
src/network/access/qnetworkreply.cpp
(6 / 0)
  
530530 return QByteArray();
531531}
532532
533const QList<QNetworkReply::RawHeaderPair>& QNetworkReply::rawHeaderPairs() const
534{
535 Q_D(const QNetworkReply);
536 return d->rawHeaders;
537}
538
533539/*!
534540 Returns a list of headers fields that were sent by the remote
535541 server, in the order that they were sent. Duplicate headers are
src/network/access/qnetworkreply.h
(3 / 0)
  
128128 QList<QByteArray> rawHeaderList() const;
129129 QByteArray rawHeader(const QByteArray &headerName) const;
130130
131 typedef QPair<QByteArray, QByteArray> RawHeaderPair;
132 const QList<RawHeaderPair>& rawHeaderPairs() const;
133
131134 // attributes
132135 QVariant attribute(QNetworkRequest::Attribute code) const;
133136

Comments

Add a new comment:

Login or create an account to post a comment

Add your comment