| 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 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
| 6 | 6 |
| 7 $!TOPLEVEL |
| 8 |
| 7 /** | 9 /** |
| 8 * A client-side XHR request for getting data from a URL, | 10 * A client-side XHR request for getting data from a URL, |
| 9 * formally known as XMLHttpRequest. | 11 * formally known as XMLHttpRequest. |
| 10 * | 12 * |
| 11 * HttpRequest can be used to obtain data from HTTP and FTP protocols, | 13 * HttpRequest can be used to obtain data from HTTP and FTP protocols, |
| 12 * and is useful for AJAX-style page updates. | 14 * and is useful for AJAX-style page updates. |
| 13 * | 15 * |
| 14 * The simplest way to get the contents of a text file, such as a | 16 * The simplest way to get the contents of a text file, such as a |
| 15 * JSON-formatted file, is with [getString]. | 17 * JSON-formatted file, is with [getString]. |
| 16 * For example, the following code gets the contents of a JSON file | 18 * For example, the following code gets the contents of a JSON file |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 headers[key] = '${headers[key]}, $value'; | 367 headers[key] = '${headers[key]}, $value'; |
| 366 } else { | 368 } else { |
| 367 headers[key] = value; | 369 headers[key] = value; |
| 368 } | 370 } |
| 369 } | 371 } |
| 370 return headers; | 372 return headers; |
| 371 } | 373 } |
| 372 | 374 |
| 373 $!MEMBERS | 375 $!MEMBERS |
| 374 } | 376 } |
| OLD | NEW |