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

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

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « sdk/lib/io/file_impl.dart ('k') | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_headers.dart
diff --git a/sdk/lib/io/http_headers.dart b/sdk/lib/io/http_headers.dart
index beb9b8913a2cad60e150fd250de68a0065b783be..eb49406bc4b21edae1dd41e5141eba1e29b5edd1 100644
--- a/sdk/lib/io/http_headers.dart
+++ b/sdk/lib/io/http_headers.dart
@@ -188,7 +188,7 @@ class _HttpHeaders implements HttpHeaders {
if (value is int) {
contentLength = value;
} else if (value is String) {
- contentLength = parseInt(value);
+ contentLength = int.parse(value);
} else {
throw new HttpException("Unexpected type for header named $name");
}
@@ -237,7 +237,7 @@ class _HttpHeaders implements HttpHeaders {
_port = HttpClient.DEFAULT_HTTP_PORT;
} else {
try {
- _port = parseInt(value.substring(pos + 1));
+ _port = int.parse(value.substring(pos + 1));
} on FormatException catch (e) {
_port = null;
}
@@ -630,7 +630,7 @@ class _Cookie implements Cookie {
if (name == "expires") {
expires = _HttpUtils.parseCookieDate(value);
} else if (name == "max-age") {
- maxAge = parseInt(value);
+ maxAge = int.parse(value);
} else if (name == "domain") {
domain = value;
} else if (name == "path") {
« no previous file with comments | « sdk/lib/io/file_impl.dart ('k') | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698