@@ -9,7 +9,7 @@ conceal the origin address (anonymity) or to circumvent address blocking
9
9
(geoblocking). While many (public) HTTP CONNECT proxy servers often limit this
10
10
to HTTPS port ` 443 ` only, this can technically be used to tunnel any
11
11
TCP/IP-based protocol (HTTP, SMTP, IMAP etc.).
12
- This library provides a simple API to create these tunneled connection for you.
12
+ This library provides a simple API to create these tunneled connections for you.
13
13
Because it implements ReactPHP's standard
14
14
[ ` ConnectorInterface ` ] ( https://github.com/reactphp/socket#connectorinterface ) ,
15
15
it can simply be used in place of a normal connector.
@@ -26,11 +26,11 @@ existing higher-level protocol implementation.
26
26
ReactPHP's standard
27
27
[ ` ConnectorInterface ` ] ( https://github.com/reactphp/socket#connectorinterface ) .
28
28
* ** Lightweight, SOLID design** -
29
- Provides a thin abstraction that is [ * just good enough* ] ( http ://en.wikipedia.org/wiki/Principle_of_good_enough)
29
+ Provides a thin abstraction that is [ * just good enough* ] ( https ://en.wikipedia.org/wiki/Principle_of_good_enough)
30
30
and does not get in your way.
31
31
Builds on top of well-tested components and well-established concepts instead of reinventing the wheel.
32
32
* ** Good test coverage** -
33
- Comes with an automated tests suite and is regularly tested against actual proxy servers in the wild
33
+ Comes with an automated tests suite and is regularly tested against actual proxy servers in the wild.
34
34
35
35
** Table of contents**
36
36
@@ -230,7 +230,7 @@ $connector->connect('tcp://google.com:80')->then(function ($stream) {
230
230
231
231
See also any of the [ examples] ( examples ) .
232
232
233
- > Note how connection timeout is in fact entirely handled outside of this
233
+ > Note how the connection timeout is in fact entirely handled outside of this
234
234
HTTP CONNECT client implementation.
235
235
236
236
#### DNS resolution
@@ -256,7 +256,7 @@ However, wrapping the `ProxyConnector` in ReactPHP's
256
256
[ ` Connector ` ] ( https://github.com/reactphp/socket#connector ) actually
257
257
performs local DNS resolution unless explicitly defined otherwise.
258
258
Given that remote DNS resolution is assumed to be the preferred mode, all
259
- other examples explicitly disable DNS resoltion like this:
259
+ other examples explicitly disable DNS resolution like this:
260
260
261
261
``` php
262
262
$connector = new Connector($loop, array(
@@ -269,7 +269,7 @@ If you want to explicitly use *local DNS resolution*, you can use the following
269
269
270
270
``` php
271
271
// set up Connector which uses Google's public DNS (8.8.8.8)
272
- $connector = Connector($loop, array(
272
+ $connector = new Connector($loop, array(
273
273
'tcp' => $proxy,
274
274
'dns' => '8.8.8.8'
275
275
));
@@ -319,7 +319,7 @@ you may simply pass an assoc array of additional request headers like this:
319
319
320
320
``` php
321
321
$proxy = new ProxyConnector('127.0.0.1:8080', $connector, array(
322
- 'Proxy-Authentication ' => 'Bearer abc123',
322
+ 'Proxy-Authorization ' => 'Bearer abc123',
323
323
'User-Agent' => 'ReactPHP'
324
324
));
325
325
```
@@ -385,11 +385,11 @@ $proxy = new ProxyConnector('http+unix://user:pass@/tmp/proxy.sock', $connector)
385
385
The recommended way to install this library is [ through Composer] ( https://getcomposer.org ) .
386
386
[ New to Composer?] ( https://getcomposer.org/doc/00-intro.md )
387
387
388
- This project follows [ SemVer] ( http ://semver.org/) .
388
+ This project follows [ SemVer] ( https ://semver.org/) .
389
389
This will install the latest supported version:
390
390
391
391
``` bash
392
- $ composer require clue/http-proxy-react:^1.3
392
+ $ composer require clue/http-proxy-react:^1.4
393
393
```
394
394
395
395
See also the [ CHANGELOG] ( CHANGELOG.md ) for details about version upgrades.
@@ -423,7 +423,10 @@ $ php vendor/bin/phpunit --exclude-group internet
423
423
424
424
## License
425
425
426
- MIT
426
+ This project is released under the permissive [ MIT license] ( LICENSE ) .
427
+
428
+ > Did you know that I offer custom development services and issuing invoices for
429
+ sponsorships of releases and for contributions? Contact me (@clue ) for details.
427
430
428
431
## More
429
432
0 commit comments