| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 final HttpResponse response; | 69 final HttpResponse response; |
| 70 | 70 |
| 71 _HttpRequestWrapper(HttpRequest inner) | 71 _HttpRequestWrapper(HttpRequest inner) |
| 72 : super(inner), | 72 : super(inner), |
| 73 _inner = inner, | 73 _inner = inner, |
| 74 response = new _HttpResponseWrapper(inner.response); | 74 response = new _HttpResponseWrapper(inner.response); |
| 75 | 75 |
| 76 int get contentLength => _inner.contentLength; | 76 int get contentLength => _inner.contentLength; |
| 77 String get method => _inner.method; | 77 String get method => _inner.method; |
| 78 Uri get uri => _inner.uri; | 78 Uri get uri => _inner.uri; |
| 79 Map<String, String> get queryParameters => _inner.queryParameters; | |
| 80 HttpHeaders get headers => _inner.headers; | 79 HttpHeaders get headers => _inner.headers; |
| 81 List<Cookie> get cookies => _inner.cookies; | 80 List<Cookie> get cookies => _inner.cookies; |
| 82 bool get persistentConnection => _inner.persistentConnection; | 81 bool get persistentConnection => _inner.persistentConnection; |
| 83 X509Certificate get certificate => _inner.certificate; | 82 X509Certificate get certificate => _inner.certificate; |
| 84 HttpSession get session => _inner.session; | 83 HttpSession get session => _inner.session; |
| 85 String get protocolVersion => _inner.protocolVersion; | 84 String get protocolVersion => _inner.protocolVersion; |
| 86 HttpConnectionInfo get connectionInfo => _inner.connectionInfo; | 85 HttpConnectionInfo get connectionInfo => _inner.connectionInfo; |
| 87 } | 86 } |
| 88 | 87 |
| 89 /// A wrapper around [HttpResponse] for the sole purpose of swallowing errors on | 88 /// A wrapper around [HttpResponse] for the sole purpose of swallowing errors on |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 Future<HttpResponse> addStream(Stream<List<int>> stream) => | 132 Future<HttpResponse> addStream(Stream<List<int>> stream) => |
| 134 _inner.addStream(stream); | 133 _inner.addStream(stream); |
| 135 Future close() => _inner.close(); | 134 Future close() => _inner.close(); |
| 136 void write(Object obj) => _inner.write(obj); | 135 void write(Object obj) => _inner.write(obj); |
| 137 void writeAll(Iterable objects, [String separator = ""]) => | 136 void writeAll(Iterable objects, [String separator = ""]) => |
| 138 _inner.writeAll(objects, separator); | 137 _inner.writeAll(objects, separator); |
| 139 void writeCharCode(int charCode) => _inner.writeCharCode(charCode); | 138 void writeCharCode(int charCode) => _inner.writeCharCode(charCode); |
| 140 void writeln([Object obj = ""]) => _inner.writeln(obj); | 139 void writeln([Object obj = ""]) => _inner.writeln(obj); |
| 141 void addError(error) => _inner.addError(error); | 140 void addError(error) => _inner.addError(error); |
| 142 } | 141 } |
| OLD | NEW |