question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Potential Proxy refinements

See original GitHub issue

Having 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 be httpx/dispatch/proxy.py?
  • It would be nice if we could avoid exposing HTTPProxyMode. Alternatives could be…
    • tunnel=<bool>, forward=<bool> arguments (defaulting to None 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 compose ConnectionPool 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:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
sethmlarsoncommented, Sep 27, 2019

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. 😃

0reactions
yeraydiazdiazcommented, May 13, 2020

Closing this issue as the points have either been already addressed or are reflected in other issues in httpx and httpcore.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found