OLD | NEW |
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 | 9 |
10 // TODO(nweiz): remove this when issue 9140 is fixed. | 10 // TODO(nweiz): remove this when issue 9140 is fixed. |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 HttpConnectionInfo get connectionInfo => _inner.connectionInfo; | 136 HttpConnectionInfo get connectionInfo => _inner.connectionInfo; |
137 void add(List<int> data) => _inner.add(data); | 137 void add(List<int> data) => _inner.add(data); |
138 Future<HttpResponse> addStream(Stream<List<int>> stream) => | 138 Future<HttpResponse> addStream(Stream<List<int>> stream) => |
139 _inner.addStream(stream); | 139 _inner.addStream(stream); |
140 Future close() => _inner.close(); | 140 Future close() => _inner.close(); |
141 void write(Object obj) => _inner.write(obj); | 141 void write(Object obj) => _inner.write(obj); |
142 void writeAll(Iterable objects, [String separator = ""]) => | 142 void writeAll(Iterable objects, [String separator = ""]) => |
143 _inner.writeAll(objects, separator); | 143 _inner.writeAll(objects, separator); |
144 void writeCharCode(int charCode) => _inner.writeCharCode(charCode); | 144 void writeCharCode(int charCode) => _inner.writeCharCode(charCode); |
145 void writeln([Object obj = ""]) => _inner.writeln(obj); | 145 void writeln([Object obj = ""]) => _inner.writeln(obj); |
146 void addError(error) => _inner.addError(error); | 146 void addError(error, [StackTrace stackTrace]) => |
| 147 _inner.addError(error, stackTrace); |
147 } | 148 } |
OLD | NEW |