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

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

Issue 9969202: Add method flush to output stream (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased to r8419 Created 8 years, 6 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/list_stream_impl.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 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 void set onError(void callback(e)) { 1097 void set onError(void callback(e)) {
1098 _requestOrResponse._streamSetErrorHandler(callback); 1098 _requestOrResponse._streamSetErrorHandler(callback);
1099 } 1099 }
1100 1100
1101 int _readInto(List<int> buffer, int offset, int len) { 1101 int _readInto(List<int> buffer, int offset, int len) {
1102 int result = _requestOrResponse._streamReadInto(buffer, offset, len); 1102 int result = _requestOrResponse._streamReadInto(buffer, offset, len);
1103 _checkScheduleCallbacks(); 1103 _checkScheduleCallbacks();
1104 return result; 1104 return result;
1105 } 1105 }
1106 1106
1107 void flush() {
1108 // Nothing to do on a HTTP output stream.
1109 }
1110
1107 void _close() { 1111 void _close() {
1108 // TODO(sgjesse): Handle this. 1112 // TODO(sgjesse): Handle this.
1109 } 1113 }
1110 1114
1111 void _dataReceived() { 1115 void _dataReceived() {
1112 super._dataReceived(); 1116 super._dataReceived();
1113 } 1117 }
1114 1118
1115 _HttpRequestResponseBase _requestOrResponse; 1119 _HttpRequestResponseBase _requestOrResponse;
1116 } 1120 }
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after
2096 2100
2097 2101
2098 class _RedirectInfo implements RedirectInfo { 2102 class _RedirectInfo implements RedirectInfo {
2099 const _RedirectInfo(int this.statusCode, 2103 const _RedirectInfo(int this.statusCode,
2100 String this.method, 2104 String this.method,
2101 Uri this.location); 2105 Uri this.location);
2102 final int statusCode; 2106 final int statusCode;
2103 final String method; 2107 final String method;
2104 final Uri location; 2108 final Uri location;
2105 } 2109 }
OLDNEW
« no previous file with comments | « runtime/bin/file_impl.dart ('k') | runtime/bin/list_stream_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698