OLD | NEW |
1 TODO: add README | 1 Dart Synchronous HTTP Client |
| 2 ============================ |
| 3 |
| 4 **Important Note:** This package requires the RawSynchronousSocket class to |
| 5 work, which should become available in version 1.24 of the Dart SDK. If you |
| 6 really want to use this package now, you'll have to build the Dart VM from |
| 7 the most up-to-date source hosted in dart-lang/sdk. |
| 8 |
| 9 A simple Dart HTTP client implemented using RawSynchronousSockets to allow for |
| 10 synchronous HTTP requests. |
| 11 |
| 12 Warning: This library should probably only be used to connect to HTTP servers |
| 13 that are hosted on 'localhost'. The operations in this library will block the |
| 14 calling thread to wait for a response from the HTTP server. The thread can |
| 15 process no other events while waiting for the server to respond. As such, this |
| 16 synchronous HTTP client library is not suitable for applications that require |
| 17 high performance. Instead, such applications should use libraries built on |
| 18 asynchronous I/O, including |
| 19 [dart:io](https://api.dartlang.org/stable/1.22.1/dart-io/dart-io-library.html) |
| 20 and [package:http](https://pub.dartlang.org/packages/http), for the best |
| 21 performance. |
OLD | NEW |