Initial start on HTTP tunnel proxies#223
Initial start on HTTP tunnel proxies#223sethmlarson wants to merge 3 commits intoencode:masterfrom sethmlarson:proxy-tunnel
Conversation
| except HTTPError as exc: | ||
| # Add the original request to any HTTPError | ||
| exc.request = request | ||
| if exc.request is None: |
There was a problem hiding this comment.
This is to not replace the request property on a ProxyError which is different than the original request.
There was a problem hiding this comment.
I'd be OK with freezing that bit of information as a code comment. :-)
|
Crackin' stuff!
It'll probably be easier to fully review once |
|
What's the proposed API for this once it's linked up to the Client? |
|
After I implement the two separate proxy types (forward and tunnel) the interface for clients will be the same as in Requests:
or if you need more control:
The default |
From an API point of view I think that having just |
|
You're right, I'll merge the two. What are your thoughts on getting the two separate implementations committed and then merging along with wiring up the Client as it's own PR? Makes it easier to test the behavior of the specific proxy modes. |
Probably would be okay with that since the dispatcher interface is documented already, yeah. We should probably start exanding out the "Advanced" section of the docs tho. |
|
Closed in favor of #259 |
Closes #201. This is my initial stab at implement HTTP tunnel proxy as a Dispatcher. Will need to implement the
proxiesargument for theClientto match Requests.I'm wondering what the best way to test this implementation would be.