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.

Add support for the NO_PROXY environment variable

See original GitHub issue

The NO_PROXY environment variable is described here:

In order to accomplish this task we’d need:

  • Implementing NO_PROXY, a list of hosts that will bypass the proxy if found within the list.
  • Only enabled if trust_env=True
  • Documentation updates for the new environment variable.
  • Test cases for all code branches.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
elwinmartincommented, Sep 19, 2019

@sethmlarson Hi Seth!

I would love to work on this if I could!

I’m mostly familiar with this library as a user but I think the context provided should be clear enough to adapt this for httpx.

1reaction
tomchristiecommented, Jan 20, 2020

You can use trust_env=False to disable system proxies.

https://www.python-httpx.org/environment_variables/

Read more comments on GitHub >

github_iconTop Results From Across the Web

We need to talk: Can we standardize NO_PROXY? - GitLab
Today, most Web clients support connection to proxy servers via environment variables: http_proxy / HTTP_PROXY; https_proxy / HTTPS_PROXY ...
Read more >
Add support for no_proxy environment variable #932 - GitHub
I'm using dulwich in a special environment where the proxy settings are out of my control. One of the features there supports "whitelisting" ......
Read more >
Are HTTP_PROXY, HTTPS_PROXY and NO_PROXY ...
I just want to know: Are these environment variables standard? Is there a written specification (may be by the OS manufacturers?) that recommends...
Read more >
Working with HTTP Proxies | OpenShift Container Platform 3.11
The NO_PROXY environment variable lists all of the OpenShift Container Platform components and all IP addresses that are managed by OpenShift Container Platform ......
Read more >
Set a network range in the no_proxy environment variable
You're looking at it the wrong way. The no_proxy environment variable lists the domain suffixes, not the prefixes. From the documentation:.
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 Hashnode Post

No results found