Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(583)

Unified Diff: net/http/http_util.h

Issue 273072: Adding a Find method to the HeadersIterator class.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/http/http_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_util.h
===================================================================
--- net/http/http_util.h (revision 29169)
+++ net/http/http_util.h (working copy)
@@ -159,6 +159,14 @@
// header name and values.
bool GetNext();
+ // Iterates through the list of headers, starting with the current position
+ // and looks for the specified header. Note that the name _must_ be
+ // lower cased.
+ // If the header was found, the return value will be true and the current
+ // position points to the header. If the return value is false, the
+ // current position will be at the end of the headers.
+ bool AdvanceTo(const char* lowercase_name);
+
std::string::const_iterator name_begin() const {
return name_begin_;
}
« no previous file with comments | « no previous file | net/http/http_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698