| 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 part of dart.io; | 5 part of dart.io; |
| 6 | 6 |
| 7 class _HttpIncoming extends Stream<List<int>> { | 7 class _HttpIncoming extends Stream<List<int>> { |
| 8 final int _transferLength; | 8 final int _transferLength; |
| 9 final Completer _dataCompleter = new Completer(); | 9 final Completer _dataCompleter = new Completer(); |
| 10 Stream<List<int>> _stream; | 10 Stream<List<int>> _stream; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 } | 121 } |
| 122 return _queryParameters; | 122 return _queryParameters; |
| 123 } | 123 } |
| 124 | 124 |
| 125 Uri get uri => _incoming.uri; | 125 Uri get uri => _incoming.uri; |
| 126 | 126 |
| 127 String get method => _incoming.method; | 127 String get method => _incoming.method; |
| 128 | 128 |
| 129 HttpSession get session { | 129 HttpSession get session { |
| 130 if (_session != null) { | 130 if (_session != null) { |
| 131 if (_session._destroyed) { |
| 132 // It's destroyed, clear it. |
| 133 _session = null; |
| 134 // Create new session object by calling recursive. |
| 135 return session; |
| 136 } |
| 131 // It's already mapped, use it. | 137 // It's already mapped, use it. |
| 132 return _session; | 138 return _session; |
| 133 } | 139 } |
| 134 // Create session, store it in connection, and return. | 140 // Create session, store it in connection, and return. |
| 135 return _session = _httpServer._sessionManager.createSession(); | 141 return _session = _httpServer._sessionManager.createSession(); |
| 136 } | 142 } |
| 137 | 143 |
| 138 HttpConnectionInfo get connectionInfo => _httpConnection.connectionInfo; | 144 HttpConnectionInfo get connectionInfo => _httpConnection.connectionInfo; |
| 139 | 145 |
| 140 X509Certificate get certificate { | 146 X509Certificate get certificate { |
| (...skipping 1917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2058 | 2064 |
| 2059 | 2065 |
| 2060 class _RedirectInfo implements RedirectInfo { | 2066 class _RedirectInfo implements RedirectInfo { |
| 2061 const _RedirectInfo(int this.statusCode, | 2067 const _RedirectInfo(int this.statusCode, |
| 2062 String this.method, | 2068 String this.method, |
| 2063 Uri this.location); | 2069 Uri this.location); |
| 2064 final int statusCode; | 2070 final int statusCode; |
| 2065 final String method; | 2071 final String method; |
| 2066 final Uri location; | 2072 final Uri location; |
| 2067 } | 2073 } |
| OLD | NEW |