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