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 pub.safe_http_server; | 5 library pub.safe_http_server; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:convert'; | 8 import 'dart:convert'; |
9 import 'dart:io'; | 9 import 'dart:io'; |
10 | 10 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 HttpConnectionInfo get connectionInfo => _inner.connectionInfo; | 147 HttpConnectionInfo get connectionInfo => _inner.connectionInfo; |
148 void add(List<int> data) => _inner.add(data); | 148 void add(List<int> data) => _inner.add(data); |
149 Future<HttpResponse> addStream(Stream<List<int>> stream) => | 149 Future<HttpResponse> addStream(Stream<List<int>> stream) => |
150 _inner.addStream(stream); | 150 _inner.addStream(stream); |
151 Future close() => _inner.close(); | 151 Future close() => _inner.close(); |
152 void write(Object obj) => _inner.write(obj); | 152 void write(Object obj) => _inner.write(obj); |
153 void writeAll(Iterable objects, [String separator = ""]) => | 153 void writeAll(Iterable objects, [String separator = ""]) => |
154 _inner.writeAll(objects, separator); | 154 _inner.writeAll(objects, separator); |
155 void writeCharCode(int charCode) => _inner.writeCharCode(charCode); | 155 void writeCharCode(int charCode) => _inner.writeCharCode(charCode); |
156 void writeln([Object obj = ""]) => _inner.writeln(obj); | 156 void writeln([Object obj = ""]) => _inner.writeln(obj); |
157 void addError(error) => _inner.addError(error); | 157 void addError(error, [StackTrace stackTrace]) => |
| 158 _inner.addError(error, stackTrace); |
158 | 159 |
159 Duration get deadline => _inner.deadline; | 160 Duration get deadline => _inner.deadline; |
160 set deadline(Duration value) { | 161 set deadline(Duration value) { |
161 _inner.deadline = value; | 162 _inner.deadline = value; |
162 } | 163 } |
163 | 164 |
164 Future redirect(Uri location, {int status: HttpStatus.MOVED_TEMPORARILY}) => | 165 Future redirect(Uri location, {int status: HttpStatus.MOVED_TEMPORARILY}) => |
165 _inner.redirect(location, status: status); | 166 _inner.redirect(location, status: status); |
166 } | 167 } |
OLD | NEW |