Potential Proxy refinements
See original GitHub issueHaving taken a good look over the new proxy functionality I’m really impressed!
There’s a couple of things I’m interested in talking through…
- Could
httpx/dispatch/proxy_http.py
simply behttpx/dispatch/proxy.py
? - It would be nice if we could avoid exposing
HTTPProxyMode
. Alternatives could be…tunnel=<bool>, forward=<bool>
arguments (defaulting toNone
and doing sensible defaults on eg.tunnel=True|False
.)tunnel_only=False
,forward_only=False
arguments.mode=<str>
, and explicitly check for"forward"
or"tunnel"
.
- I’d quite like to see
ProxyDispatch
composeConnectionPool
rather than subclassing it, as that ends up with a better seperation. - Possibly have the docs link to some relevant places wrt. tunnelling vs. forwarding, since we’re using some pretty technical terms here without neccessarily giving enough context to users.
I’m happy to take on any of these bits myself, but figure they’re worth talking through first.
Also for reference, are proxies={"all:/...": ...}
and proxies={"all": ...}
conventions that are used in requests
?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Development and refinement of proxy-climate indicators ...
In recent decades, research using proxy-climate indicators from bogs has burgeoned. A range of proxies for past hydrological change has been ...
Read more >Development and refinement of proxy ... - Archive ouverte HAL
Peat, especially from acidic mires (bogs), is a natural archive of past environmental change. Recon- structions of past climate from bogs ...
Read more >Development and refinement of proxy-climate indicators ...
In recent decades, research using proxy-climate indicators from bogs has burgeoned. A range of proxies for past hydrological change has been ...
Read more >Initial validation of a proxy indicator of functioning as a ... - NCBI
This study evaluated the validity of a novel proxy indicator of 'problem-free functioning' across a range of functional domains, and explored ...
Read more >AP4A: Potential refinements to the DRM model—Risk Limits
In this paper, we set out our preliminary views on potential refinements to the DRM ... This can generally only be overcome by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Why would you tend towards removing the
proxy_
prefix? They’re both proxies, just different methods of proxying. Users won’t see the modules anyways as the members are exposed top-level, the names are for our benefit.And speaking of SOCKS, we’re implementing a lightweight sans-I/O SOCKS library without any dependencies unlike all current solutions so it can be marked as a dependency and SOCKS proxies will be first-class just like HTTP. 😃
Closing this issue as the points have either been already addressed or are reflected in other issues in httpx and httpcore.