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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 final HttpResponse response; | 76 final HttpResponse response; |
77 | 77 |
78 _HttpRequestWrapper(HttpRequest inner) | 78 _HttpRequestWrapper(HttpRequest inner) |
79 : super(inner), | 79 : super(inner), |
80 _inner = inner, | 80 _inner = inner, |
81 response = new _HttpResponseWrapper(inner.response); | 81 response = new _HttpResponseWrapper(inner.response); |
82 | 82 |
83 int get contentLength => _inner.contentLength; | 83 int get contentLength => _inner.contentLength; |
84 String get method => _inner.method; | 84 String get method => _inner.method; |
85 Uri get uri => _inner.uri; | 85 Uri get uri => _inner.uri; |
| 86 Uri get requestedUri => _inner.requestedUri; |
86 HttpHeaders get headers => _inner.headers; | 87 HttpHeaders get headers => _inner.headers; |
87 List<Cookie> get cookies => _inner.cookies; | 88 List<Cookie> get cookies => _inner.cookies; |
88 bool get persistentConnection => _inner.persistentConnection; | 89 bool get persistentConnection => _inner.persistentConnection; |
89 X509Certificate get certificate => _inner.certificate; | 90 X509Certificate get certificate => _inner.certificate; |
90 HttpSession get session => _inner.session; | 91 HttpSession get session => _inner.session; |
91 String get protocolVersion => _inner.protocolVersion; | 92 String get protocolVersion => _inner.protocolVersion; |
92 HttpConnectionInfo get connectionInfo => _inner.connectionInfo; | 93 HttpConnectionInfo get connectionInfo => _inner.connectionInfo; |
93 } | 94 } |
94 | 95 |
95 /// A wrapper around [HttpResponse] for the sole purpose of swallowing errors on | 96 /// A wrapper around [HttpResponse] for the sole purpose of swallowing errors on |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 Future close() => _inner.close(); | 142 Future close() => _inner.close(); |
142 Future flush() => _inner.flush(); | 143 Future flush() => _inner.flush(); |
143 void write(Object obj) => _inner.write(obj); | 144 void write(Object obj) => _inner.write(obj); |
144 void writeAll(Iterable objects, [String separator = ""]) => | 145 void writeAll(Iterable objects, [String separator = ""]) => |
145 _inner.writeAll(objects, separator); | 146 _inner.writeAll(objects, separator); |
146 void writeCharCode(int charCode) => _inner.writeCharCode(charCode); | 147 void writeCharCode(int charCode) => _inner.writeCharCode(charCode); |
147 void writeln([Object obj = ""]) => _inner.writeln(obj); | 148 void writeln([Object obj = ""]) => _inner.writeln(obj); |
148 void addError(error, [StackTrace stackTrace]) => | 149 void addError(error, [StackTrace stackTrace]) => |
149 _inner.addError(error, stackTrace); | 150 _inner.addError(error, stackTrace); |
150 } | 151 } |
OLD | NEW |