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

Side by Side Diff: pkg/http/test/safe_http_server.dart

Issue 14028017: Remove .writeStream, .consume and rewrite IOSink to correctly implement a (sane) well-defined behav… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review comments. Created 7 years, 8 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 | « no previous file | pkg/scheduled_test/lib/src/scheduled_server/safe_http_server.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library safe_http_server; 5 library safe_http_server;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 import 'dart:uri'; 9 import 'dart:uri';
10 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 Encoding get encoding => _inner.encoding; 125 Encoding get encoding => _inner.encoding;
126 set encoding(Encoding value) { 126 set encoding(Encoding value) {
127 _inner.encoding = value; 127 _inner.encoding = value;
128 } 128 }
129 129
130 HttpHeaders get headers => _inner.headers; 130 HttpHeaders get headers => _inner.headers;
131 List<Cookie> get cookies => _inner.cookies; 131 List<Cookie> get cookies => _inner.cookies;
132 Future<Socket> detachSocket() => _inner.detachSocket(); 132 Future<Socket> detachSocket() => _inner.detachSocket();
133 HttpConnectionInfo get connectionInfo => _inner.connectionInfo; 133 HttpConnectionInfo get connectionInfo => _inner.connectionInfo;
134 void add(List<int> data) => _inner.add(data); 134 void add(List<int> data) => _inner.add(data);
135 Future<HttpResponse> consume(Stream<List<int>> stream) => 135 Future<HttpResponse> addStream(Stream<List<int>> stream) =>
136 _inner.consume(stream); 136 _inner.addStream(stream);
137 Future<HttpResponse> writeStream(Stream<List<int>> stream) =>
138 _inner.writeStream(stream);
139 Future close() => _inner.close(); 137 Future close() => _inner.close();
140 void write(Object obj) => _inner.write(obj); 138 void write(Object obj) => _inner.write(obj);
141 void writeAll(Iterable objects, [String separator = ""]) => 139 void writeAll(Iterable objects, [String separator = ""]) =>
142 _inner.writeAll(objects, separator); 140 _inner.writeAll(objects, separator);
143 void writeCharCode(int charCode) => _inner.writeCharCode(charCode); 141 void writeCharCode(int charCode) => _inner.writeCharCode(charCode);
144 void writeln([Object obj = ""]) => _inner.writeln(obj); 142 void writeln([Object obj = ""]) => _inner.writeln(obj);
145 } 143 }
OLDNEW
« no previous file with comments | « no previous file | pkg/scheduled_test/lib/src/scheduled_server/safe_http_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698