| 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 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1097 void set onError(void callback(e)) { | 1097 void set onError(void callback(e)) { |
| 1098 _requestOrResponse._streamSetErrorHandler(callback); | 1098 _requestOrResponse._streamSetErrorHandler(callback); |
| 1099 } | 1099 } |
| 1100 | 1100 |
| 1101 int _readInto(List<int> buffer, int offset, int len) { | 1101 int _readInto(List<int> buffer, int offset, int len) { |
| 1102 int result = _requestOrResponse._streamReadInto(buffer, offset, len); | 1102 int result = _requestOrResponse._streamReadInto(buffer, offset, len); |
| 1103 _checkScheduleCallbacks(); | 1103 _checkScheduleCallbacks(); |
| 1104 return result; | 1104 return result; |
| 1105 } | 1105 } |
| 1106 | 1106 |
| 1107 void flush() { |
| 1108 // Nothing to do on a HTTP output stream. |
| 1109 } |
| 1110 |
| 1107 void _close() { | 1111 void _close() { |
| 1108 // TODO(sgjesse): Handle this. | 1112 // TODO(sgjesse): Handle this. |
| 1109 } | 1113 } |
| 1110 | 1114 |
| 1111 void _dataReceived() { | 1115 void _dataReceived() { |
| 1112 super._dataReceived(); | 1116 super._dataReceived(); |
| 1113 } | 1117 } |
| 1114 | 1118 |
| 1115 _HttpRequestResponseBase _requestOrResponse; | 1119 _HttpRequestResponseBase _requestOrResponse; |
| 1116 } | 1120 } |
| (...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2096 | 2100 |
| 2097 | 2101 |
| 2098 class _RedirectInfo implements RedirectInfo { | 2102 class _RedirectInfo implements RedirectInfo { |
| 2099 const _RedirectInfo(int this.statusCode, | 2103 const _RedirectInfo(int this.statusCode, |
| 2100 String this.method, | 2104 String this.method, |
| 2101 Uri this.location); | 2105 Uri this.location); |
| 2102 final int statusCode; | 2106 final int statusCode; |
| 2103 final String method; | 2107 final String method; |
| 2104 final Uri location; | 2108 final Uri location; |
| 2105 } | 2109 } |
| OLD | NEW |