File tree Expand file tree Collapse file tree 2 files changed +24
-5
lines changed Expand file tree Collapse file tree 2 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 1.2.0 (2017-08-30)
4
+
5
+ * Feature: Use socket error codes for connection rejections
6
+ (#17 by @clue )
7
+
8
+ ``` php
9
+ $promise = $proxy->connect('imap.example.com:143');
10
+ $promise->then(null, function (Exeption $e) {
11
+ if ($e->getCode() === SOCKET_EACCES) {
12
+ echo 'Failed to authenticate with proxy!';
13
+ }
14
+ throw $e;
15
+ });
16
+ ```
17
+
18
+ * Improve test suite by locking Travis distro so new defaults will not break the build and
19
+ optionally exclude tests that rely on working internet connection
20
+ (#15 and #16 by @clue)
21
+
3
22
## 1.1.0 (2017-06-11)
4
23
5
24
* Feature: Support proxy authentication if proxy URL contains username/password
Original file line number Diff line number Diff line change 1
1
# clue/http-proxy-react [ ![ Build Status] ( https://travis-ci.org/clue/php-http-proxy-react.svg?branch=master )] ( https://travis-ci.org/clue/php-http-proxy-react )
2
2
3
- Async HTTP CONNECT proxy connector, use any TCP/IP protocol through an HTTP proxy server, built on top of ReactPHP.
3
+ Async HTTP CONNECT proxy connector, use any TCP/IP protocol through an HTTP proxy server, built on top of [ ReactPHP] ( http://reactphp.org ) .
4
4
5
5
** Table of contents**
6
6
@@ -320,21 +320,21 @@ $proxy->connect('tcp://smtp.googlemail.com:587');
320
320
321
321
## Install
322
322
323
- The recommended way to install this library is [ through Composer] ( http ://getcomposer.org) .
324
- [ New to Composer?] ( http ://getcomposer.org/doc/00-intro.md)
323
+ The recommended way to install this library is [ through Composer] ( https ://getcomposer.org) .
324
+ [ New to Composer?] ( https ://getcomposer.org/doc/00-intro.md)
325
325
326
326
This will install the latest supported version:
327
327
328
328
``` bash
329
- $ composer require clue/http-proxy-react:^1.1
329
+ $ composer require clue/http-proxy-react:^1.2
330
330
```
331
331
332
332
See also the [ CHANGELOG] ( CHANGELOG.md ) for details about version upgrades.
333
333
334
334
## Tests
335
335
336
336
To run the test suite, you first need to clone this repo and then install all
337
- dependencies [ through Composer] ( http ://getcomposer.org) :
337
+ dependencies [ through Composer] ( https ://getcomposer.org) :
338
338
339
339
``` bash
340
340
$ composer install
You can’t perform that action at this time.
0 commit comments