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

Unified Diff: sdk/lib/io/http.dart

Issue 21351002: Make the parameters map of the HTTP HeaderValue unmodifiable (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 | sdk/lib/io/http_headers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http.dart
diff --git a/sdk/lib/io/http.dart b/sdk/lib/io/http.dart
index 6764ab2602e7903ffd74715e7fd910b4f441ca76..db453ae0f7c9a05d634d331da3c49f009abb8616 100644
--- a/sdk/lib/io/http.dart
+++ b/sdk/lib/io/http.dart
@@ -497,7 +497,7 @@ abstract class HttpHeaders {
*/
abstract class HeaderValue {
/**
- * Creates a new header value object setting the value part.
+ * Creates a new header value object setting the value and parameters.
*/
factory HeaderValue([String value = "", Map<String, String> parameters]) {
return new _HeaderValue(value, parameters);
@@ -519,6 +519,9 @@ abstract class HeaderValue {
/**
* Gets the map of parameters.
+ *
+ * This map cannot be modified. invoking any operation which would
+ * modify the map will throw [UnsupportedError].
*/
Map<String, String> get parameters;
« no previous file with comments | « no previous file | sdk/lib/io/http_headers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698