OLD | NEW |
---|---|
1 Dart Synchronous HTTP Client | 1 Dart Synchronous HTTP Client |
2 ============================ | 2 ============================ |
3 | 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. | |
zra
2017/04/20 22:09:35
Or download an SDK in the 1.24 dev series.
| |
8 | |
4 A simple Dart HTTP client implemented using RawSynchronousSockets to allow for | 9 A simple Dart HTTP client implemented using RawSynchronousSockets to allow for |
5 synchronous HTTP requests. | 10 synchronous HTTP requests. |
6 | 11 |
7 Warning: This library should probably only be used to connect to HTTP servers | 12 Warning: This library should probably only be used to connect to HTTP servers |
8 that are hosted on 'localhost'. The operations in this library will block the | 13 that are hosted on 'localhost'. The operations in this library will block the |
9 calling thread to wait for a response from the HTTP server. The thread can | 14 calling thread to wait for a response from the HTTP server. The thread can |
10 process no other events while waiting for the server to respond. As such, this | 15 process no other events while waiting for the server to respond. As such, this |
11 synchronous HTTP client library is not suitable for applications that require | 16 synchronous HTTP client library is not suitable for applications that require |
12 high performance. Instead, such applications should use libraries built on | 17 high performance. Instead, such applications should use libraries built on |
13 asynchronous I/O, including | 18 asynchronous I/O, including |
14 [dart:io](https://api.dartlang.org/stable/1.22.1/dart-io/dart-io-library.html) | 19 [dart:io](https://api.dartlang.org/stable/1.22.1/dart-io/dart-io-library.html) |
15 and [package:http](https://pub.dartlang.org/packages/http), for the best | 20 and [package:http](https://pub.dartlang.org/packages/http), for the best |
16 performance. | 21 performance. |
OLD | NEW |