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

Unified Diff: pkg/http/lib/src/io_client.dart

Issue 124753002: Code cleanup (mostly io lib and some http lib). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 6 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 | « no previous file | pkg/http/lib/src/mock_client.dart » ('j') | sdk/lib/io/http_date.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/lib/src/io_client.dart
diff --git a/pkg/http/lib/src/io_client.dart b/pkg/http/lib/src/io_client.dart
index b4fa8930458904716bcbdbbf6d92d3aaf1a8b413..c12cac2d6329375e018591321c115a796204bc06 100644
--- a/pkg/http/lib/src/io_client.dart
+++ b/pkg/http/lib/src/io_client.dart
@@ -27,10 +27,11 @@ class IOClient extends BaseClient {
return Chain.track(_inner.openUrl(request.method, request.url))
.then((ioRequest) {
- ioRequest.followRedirects = request.followRedirects;
- ioRequest.maxRedirects = request.maxRedirects;
- ioRequest.contentLength = request.contentLength;
- ioRequest.persistentConnection = request.persistentConnection;
+ ioRequest
+ ..followRedirects = request.followRedirects
+ ..maxRedirects = request.maxRedirects
+ ..contentLength = request.contentLength
+ ..persistentConnection = request.persistentConnection;
request.headers.forEach((name, value) {
ioRequest.headers.set(name, value);
});
« no previous file with comments | « no previous file | pkg/http/lib/src/mock_client.dart » ('j') | sdk/lib/io/http_date.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698