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

Side by Side Diff: runtime/bin/http_impl.dart

Issue 11090016: Change core lib, dart2js, and more for new optional parameters syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/file_impl.dart ('k') | runtime/bin/http_utils.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 class _HttpHeaders implements HttpHeaders { 5 class _HttpHeaders implements HttpHeaders {
6 _HttpHeaders() : _headers = new Map<String, List<String>>(); 6 _HttpHeaders() : _headers = new Map<String, List<String>>();
7 7
8 List<String> operator[](String name) { 8 List<String> operator[](String name) {
9 name = name.toLowerCase(); 9 name = name.toLowerCase();
10 return _headers[name]; 10 return _headers[name];
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 1120
1121 class _HttpInputStream extends _BaseDataInputStream implements InputStream { 1121 class _HttpInputStream extends _BaseDataInputStream implements InputStream {
1122 _HttpInputStream(_HttpRequestResponseBase this._requestOrResponse) { 1122 _HttpInputStream(_HttpRequestResponseBase this._requestOrResponse) {
1123 _checkScheduleCallbacks(); 1123 _checkScheduleCallbacks();
1124 } 1124 }
1125 1125
1126 int available() { 1126 int available() {
1127 return _requestOrResponse._streamAvailable(); 1127 return _requestOrResponse._streamAvailable();
1128 } 1128 }
1129 1129
1130 void pipe(OutputStream output, [bool close = true]) { 1130 void pipe(OutputStream output, {bool close: true}) {
1131 _pipe(this, output, close: close); 1131 _pipe(this, output, close: close);
1132 } 1132 }
1133 1133
1134 List<int> _read(int bytesToRead) { 1134 List<int> _read(int bytesToRead) {
1135 List<int> result = _requestOrResponse._streamRead(bytesToRead); 1135 List<int> result = _requestOrResponse._streamRead(bytesToRead);
1136 _checkScheduleCallbacks(); 1136 _checkScheduleCallbacks();
1137 return result; 1137 return result;
1138 } 1138 }
1139 1139
1140 void set onError(void callback(e)) { 1140 void set onError(void callback(e)) {
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after
2291 2291
2292 2292
2293 class _RedirectInfo implements RedirectInfo { 2293 class _RedirectInfo implements RedirectInfo {
2294 const _RedirectInfo(int this.statusCode, 2294 const _RedirectInfo(int this.statusCode,
2295 String this.method, 2295 String this.method,
2296 Uri this.location); 2296 Uri this.location);
2297 final int statusCode; 2297 final int statusCode;
2298 final String method; 2298 final String method;
2299 final Uri location; 2299 final Uri location;
2300 } 2300 }
OLDNEW
« no previous file with comments | « runtime/bin/file_impl.dart ('k') | runtime/bin/http_utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698