File tree Expand file tree Collapse file tree 3 files changed +60
-6
lines changed Expand file tree Collapse file tree 3 files changed +60
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
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
+
3
38
## 0.4.17 (2017-03-20)
4
39
5
40
* Improvement: Add PHPUnit to require-dev #75 @jsor
Original file line number Diff line number Diff line change 2
2
3
3
[ ![ 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 )
4
4
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 )
6
14
7
15
## Basic usage
8
16
@@ -70,11 +78,18 @@ $loop->run();
70
78
71
79
See also the [ examples] ( examples ) .
72
80
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 )
74
85
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 ) .
78
93
79
94
## Tests
80
95
@@ -90,3 +105,7 @@ To run the test suite, go to the project root and run:
90
105
``` bash
91
106
$ php vendor/bin/phpunit
92
107
```
108
+
109
+ ## License
110
+
111
+ MIT, see [ LICENSE file] ( LICENSE ) .
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react/http-client" ,
3
- "description" : " Asynchronous HTTP client library. " ,
3
+ "description" : " Event-driven, streaming HTTP client for ReactPHP " ,
4
4
"keywords" : [" http" ],
5
5
"license" : " MIT" ,
6
6
"require" : {
You can’t perform that action at this time.
0 commit comments