remove HTTPProxyAuth in favor of the proxies parameter

This commit is contained in:
Nate Prewitt
2016-12-16 15:14:58 -07:00
parent 0b4302bb2b
commit 7b76bd5866
3 changed files with 3 additions and 9 deletions
+3
View File
@@ -1,6 +1,9 @@
3.0.0 (2016-xx-xx)
++++++++++++++++++
- Remove the HTTPProxyAuth class in favor of supporting proxy auth via
the proxies parameter.
- Relax how Requests strips bodies from redirects. 3.0.0 only supports body
removal on 301/302 POST redirects and all 303 redirects.
-1
View File
@@ -74,7 +74,6 @@ Authentication
.. autoclass:: requests.auth.AuthBase
.. autoclass:: requests.auth.HTTPBasicAuth
.. autoclass:: requests.auth.HTTPProxyAuth
.. autoclass:: requests.auth.HTTPDigestAuth
-8
View File
@@ -77,14 +77,6 @@ class HTTPBasicAuth(AuthBase):
return r
class HTTPProxyAuth(HTTPBasicAuth):
"""Attaches HTTP Proxy Authentication to a given Request object."""
def __call__(self, r):
r.headers['Proxy-Authorization'] = _basic_auth_str(self.username, self.password)
return r
class HTTPDigestAuth(AuthBase):
"""Attaches HTTP Digest Authentication to the given Request object."""