| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 class _HttpHeaders implements HttpHeaders { | 5 class _HttpHeaders implements HttpHeaders { |
| 6 _HttpHeaders() : _headers = new Map<String, List<String>>(); | 6 _HttpHeaders() : _headers = new Map<String, List<String>>(); |
| 7 | 7 |
| 8 List<String> operator[](String name) { | 8 List<String> operator[](String name) { |
| 9 name = name.toLowerCase(); | 9 name = name.toLowerCase(); |
| 10 return _headers[name]; | 10 return _headers[name]; |
| (...skipping 1919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1930 int hashCode() => _socket.hashCode(); | 1930 int hashCode() => _socket.hashCode(); |
| 1931 | 1931 |
| 1932 String _host; | 1932 String _host; |
| 1933 int _port; | 1933 int _port; |
| 1934 Socket _socket; | 1934 Socket _socket; |
| 1935 Date _returnTime; | 1935 Date _returnTime; |
| 1936 } | 1936 } |
| 1937 | 1937 |
| 1938 | 1938 |
| 1939 class _HttpClient implements HttpClient { | 1939 class _HttpClient implements HttpClient { |
| 1940 static final int DEFAULT_EVICTION_TIMEOUT = 60000; | 1940 static const int DEFAULT_EVICTION_TIMEOUT = 60000; |
| 1941 | 1941 |
| 1942 _HttpClient() : _openSockets = new Map(), | 1942 _HttpClient() : _openSockets = new Map(), |
| 1943 _activeSockets = new Set(), | 1943 _activeSockets = new Set(), |
| 1944 _shutdown = false; | 1944 _shutdown = false; |
| 1945 | 1945 |
| 1946 HttpClientConnection open( | 1946 HttpClientConnection open( |
| 1947 String method, String host, int port, String path) { | 1947 String method, String host, int port, String path) { |
| 1948 return _open(method, host, port, path); | 1948 return _open(method, host, port, path); |
| 1949 } | 1949 } |
| 1950 | 1950 |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2166 | 2166 |
| 2167 | 2167 |
| 2168 class _RedirectInfo implements RedirectInfo { | 2168 class _RedirectInfo implements RedirectInfo { |
| 2169 const _RedirectInfo(int this.statusCode, | 2169 const _RedirectInfo(int this.statusCode, |
| 2170 String this.method, | 2170 String this.method, |
| 2171 Uri this.location); | 2171 Uri this.location); |
| 2172 final int statusCode; | 2172 final int statusCode; |
| 2173 final String method; | 2173 final String method; |
| 2174 final Uri location; | 2174 final Uri location; |
| 2175 } | 2175 } |
| OLD | NEW |