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

Unified Diff: runtime/bin/http.dart

Issue 10386010: Add enumeration of the HTTP headers (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 | runtime/bin/http_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/http.dart
diff --git a/runtime/bin/http.dart b/runtime/bin/http.dart
index 2f5ee32f7c42c2630c79c6c2fd54663dafb25eff..c99424fb2de781910bc59741a9c89dfdb972f5c0 100644
--- a/runtime/bin/http.dart
+++ b/runtime/bin/http.dart
@@ -270,6 +270,13 @@ interface HttpHeaders default _HttpHeaders {
void removeAll(String name);
/**
+ * Enumerate the headers applying the function [f] to each
+ * header. The header names in passed in [name] will be all lower
Anders Johnsen 2012/05/07 13:21:27 This sounds odd. :)
Søren Gjesse 2012/05/07 13:51:46 The HTTP header names are case insensitive (define
+ * case.
+ */
+ void forEach(void f(String name, List<String> values));
+
+ /**
* Gets and sets the date. The value of this property will
* reflect the "Date" header
*/
« no previous file with comments | « no previous file | runtime/bin/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698