Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Support no_proxy environment variable. #140 #145
Sorry if I've done any dumb stuff here. I tried to find a spec, and the nearest I could find was some ancient info from W3C. I've thus implemented a subset of what other popular libraries support.
For example, if
Differences to other implementations:
Domain suffix vs. string suffix
wget and Python's urllib3 avoid the proxy if one of the
Some implementations ignore all spaces, rather than just
Ruby's stdlib implementation can be made to apply only to specific ports.
Avoiding the proxy for CADR ranges
Python's urllib3 allows you to specify e.g.
Avoiding the proxy for all requests
Ruby and cURL avoid the proxy for all requests if