Commit 55b8a57350fee26783b379d3897d38759903824f

  • avatar
  • Markus Goetz (Committer)
  • Wed Nov 11 11:44:22 CET 2009
  • avatar
  • zecke (Author)
  • Mon Sep 21 22:48:25 CEST 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
  
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
  
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