thekid/rfc — Issue #162: RFC 0162: HTTP Proxy
Author: thekid
Created: 2011-10-09 15:30:30+00:00
State: open

Scope of Change
====
A functionality will be added to the peer.http.HttpConnection class to
support HTTP proxies.

Rationale
====
Some machines in restricted networks may not access other networks
directly.

Functionality
====

API: The HttpProxy class
----

```php

```

API: The HttpConnection class
----

```php

```

Example
----

```php
setProxy(create(new HttpProxy($host, $port))
->withExclude('localhost')
->withExclude('.example.com')
);
$response= $this->conn->get();
?>
```

Security considerations
====
n/a

Speed impact
====
n/a

Dependencies
====
n/a

Related documents
====
* Advanced HTTPClient Info:
http://www.innovation.ch/java/HTTPClient/advanced_info.html
* Implementing patch
http://xp-framework.net/rfc/contrib/rfc0162.diff

Comments
====
friebe, Sun Jun 1 13:56:30 2008
----
I'm not really happy with the implementation, and it is not testable
in an easy fashion. Since the HttpConnection class itself isn't easily
testable either and accessing the request (e.g. for logging purposes)
is hacky, too (can't be done until is has been sent!), maybe we should
rewrite completely within this RFC (thus delaying it longer, though).