Skip to content

Commit caf646e

Browse files
committed
Prepare v0.5.0 release
1 parent 9aca68f commit caf646e

File tree

3 files changed

+60
-6
lines changed

3 files changed

+60
-6
lines changed

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
# Changelog
22

3+
## 0.5.0 (2017-05-22)
4+
5+
* Feature / BC break: Replace `Factory` with simple `Client` constructor
6+
(#85 by @clue)
7+
8+
The `Client` now accepts a required `LoopInterface` and an optional
9+
`ConnectorInterface`. It will now create a default `Connector` if none
10+
has been given.
11+
12+
```php
13+
// old
14+
$dnsResolverFactory = new React\Dns\Resolver\Factory();
15+
$dnsResolver = $dnsResolverFactory->createCached('8.8.8.8', $loop);
16+
$factory = new React\HttpClient\Factory();
17+
$client = $factory->create($loop, $dnsResolver);
18+
19+
// new
20+
$client = new React\HttpClient\Client($loop);
21+
```
22+
23+
* Feature: `Request::close()` now cancels pending connection attempt
24+
(#91 by @clue)
25+
26+
* Feature / BC break: Replace deprecated SocketClient with new Socket component
27+
(#74, #84 and #88 by @clue)
28+
29+
* Feature / BC break: Consistent stream semantics and forward compatibility with upcoming Stream v1.0
30+
(#90 by @clue)
31+
32+
* Feature: Forward compatibility with upcoming EventLoop v1.0 and v0.5
33+
(#89 by @clue)
34+
35+
* Fix: Catch Guzzle parser exception
36+
(#82 by @djagya)
37+
338
## 0.4.17 (2017-03-20)
439

540
* Improvement: Add PHPUnit to require-dev #75 @jsor

README.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22

33
[![Build Status](https://secure.travis-ci.org/reactphp/http-client.png?branch=master)](http://travis-ci.org/reactphp/http-client) [![Code Climate](https://codeclimate.com/github/reactphp/http-client/badges/gpa.svg)](https://codeclimate.com/github/reactphp/http-client)
44

5-
Basic HTTP/1.0 client.
5+
Event-driven, streaming HTTP client for [ReactPHP](http://reactphp.org)
6+
7+
**Table of Contents**
8+
9+
* [Basic usage](#basic-usage)
10+
* [Example](#example)
11+
* [Install](#install)
12+
* [Tests](#tests)
13+
* [License](#license)
614

715
## Basic usage
816

@@ -70,11 +78,18 @@ $loop->run();
7078

7179
See also the [examples](examples).
7280

73-
## TODO
81+
## Install
82+
83+
The recommended way to install this library is [through Composer](http://getcomposer.org).
84+
[New to Composer?](http://getcomposer.org/doc/00-intro.md)
7485

75-
* gzip content encoding
76-
* keep-alive connections
77-
* following redirections
86+
This will install the latest supported version:
87+
88+
```bash
89+
$ composer require react/http-client:^0.5
90+
```
91+
92+
More details about version upgrades can be found in the [CHANGELOG](CHANGELOG.md).
7893

7994
## Tests
8095

@@ -90,3 +105,7 @@ To run the test suite, go to the project root and run:
90105
```bash
91106
$ php vendor/bin/phpunit
92107
```
108+
109+
## License
110+
111+
MIT, see [LICENSE file](LICENSE).

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react/http-client",
3-
"description": "Asynchronous HTTP client library.",
3+
"description": "Event-driven, streaming HTTP client for ReactPHP",
44
"keywords": ["http"],
55
"license": "MIT",
66
"require": {

0 commit comments

Comments
 (0)