| | |
- AbstractBasicAuthHandler
-
- HTTPBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler)
- ProxyBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler)
- AbstractDigestAuthHandler
- BaseHandler
-
- AbstractHTTPHandler
-
- HTTPHandler
- HTTPSHandler
- CustomProxyHandler
- FTPHandler
-
- CacheFTPHandler
- FileHandler
- GopherHandler
- HTTPDefaultErrorHandler
- HTTPDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler)
- HTTPRedirectHandler
- ProxyDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler)
- ProxyHandler
- UnknownHandler
- CustomProxy
- HTTPPasswordMgr
-
- HTTPPasswordMgrWithDefaultRealm
- exceptions.IOError(exceptions.EnvironmentError)
-
- URLError
-
- GopherError
- HTTPError(URLError, urllib.addinfourl)
- OpenerDirector
- OpenerFactory
- Request
class AbstractDigestAuthHandler |
| |
|
| |
Methods defined here:
- __init__(self, passwd=None)
- get_algorithm_impls(self, algorithm)
- get_authorization(self, req, chal)
- get_entity_digest(self, data, chal)
- http_error_auth_reqed(self, authreq, host, req, headers)
- retry_http_digest_auth(self, req, auth)
Data and non-method functions defined here:
- __doc__ = None
- __module__ = 'urllib2'
|
class CustomProxy |
| |
# feature suggested by Duncan Booth
# XXX custom is not a good name |
| |
Methods defined here:
- __init__(self, proto, func=None, proxy_addr=None)
- # either pass a function to the constructor or override handle
- get_proxy(self)
- handle(self, req)
Data and non-method functions defined here:
- __doc__ = None
- __module__ = 'urllib2'
|
class HTTPBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler) |
| |
|
| |
- Method resolution order:
- HTTPBasicAuthHandler
- AbstractBasicAuthHandler
- BaseHandler
Methods defined here:
- http_error_401(self, req, fp, code, msg, headers)
Data and non-method functions defined here:
- __doc__ = None
- __module__ = 'urllib2'
- auth_header = 'Authorization'
Methods inherited from AbstractBasicAuthHandler:
- __init__(self, password_mgr=None)
- http_error_auth_reqed(self, authreq, host, req, headers)
- retry_http_basic_auth(self, host, req, realm)
Data and non-method functions inherited from AbstractBasicAuthHandler:
- rx = <_sre.SRE_Pattern object>
Methods inherited from BaseHandler:
- add_parent(self, parent)
- close(self)
|
class HTTPDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler) |
| |
An authentication protocol defined by RFC 2069
Digest authentication improves on basic authentication because it
does not transmit passwords in the clear. |
| |
- Method resolution order:
- HTTPDigestAuthHandler
- BaseHandler
- AbstractDigestAuthHandler
Methods defined here:
- http_error_401(self, req, fp, code, msg, headers)
Data and non-method functions defined here:
- __doc__ = 'An authentication protocol defined by RFC 2069\... does not transmit passwords in the clear.\n '
- __module__ = 'urllib2'
- header = 'Authorization'
Methods inherited from BaseHandler:
- add_parent(self, parent)
- close(self)
Methods inherited from AbstractDigestAuthHandler:
- __init__(self, passwd=None)
- get_algorithm_impls(self, algorithm)
- get_authorization(self, req, chal)
- get_entity_digest(self, data, chal)
- http_error_auth_reqed(self, authreq, host, req, headers)
- retry_http_digest_auth(self, req, auth)
|
class HTTPError(URLError, urllib.addinfourl) |
| |
Raised when HTTP error occurs, but also acts like non-error return |
| |
- Method resolution order:
- HTTPError
- URLError
- exceptions.IOError
- exceptions.EnvironmentError
- exceptions.StandardError
- exceptions.Exception
- urllib.addinfourl
- urllib.addbase
Methods defined here:
- _HTTPError__super_init = __init__(self, fp, headers, url)
- __del__(self)
- __init__(self, url, code, msg, hdrs, fp)
- __str__(self)
Data and non-method functions defined here:
- __doc__ = 'Raised when HTTP error occurs, but also acts like non-error return'
- __module__ = 'urllib2'
Methods inherited from exceptions.Exception:
- __getitem__(...)
Methods inherited from urllib.addinfourl:
- geturl(self)
- info(self)
Methods inherited from urllib.addbase:
- __repr__(self)
- close(self)
|
class HTTPPasswordMgr |
| |
|
| |
Methods defined here:
- __init__(self)
- add_password(self, realm, uri, user, passwd)
- find_user_password(self, realm, authuri)
- is_suburi(self, base, test)
- Check if test is below base in a URI tree
Both args must be URIs in reduced form.
- reduce_uri(self, uri)
- Accept netloc or URI and extract only the netloc and path
Data and non-method functions defined here:
- __doc__ = None
- __module__ = 'urllib2'
|
class HTTPRedirectHandler(BaseHandler) |
| |
|
| |
Methods defined here:
- http_error_301 = http_error_302(self, req, fp, code, msg, headers)
- http_error_302(self, req, fp, code, msg, headers)
- # Implementation note: To avoid the server sending us into an
# infinite loop, the request object needs to track what URLs we
# have already seen. Do this by adding a handler-specific
# attribute to the Request object.
Data and non-method functions defined here:
- __doc__ = None
- __module__ = 'urllib2'
- inf_msg = 'The HTTP server returned a redirect error that ...nfinite loop.\nThe last 302 error message was:\n'
Methods inherited from BaseHandler:
- add_parent(self, parent)
- close(self)
|
class OpenerFactory |
| |
#bleck! don't use this yet |
| |
Methods defined here:
- add_handler(self, h)
- add_proxy_handler(self, ph)
- build_opener(self)
- replace_handler(self, h)
Data and non-method functions defined here:
- __doc__ = None
- __module__ = 'urllib2'
- default_handlers = [<class urllib2.UnknownHandler>, <class urllib2.HTTPHandler>, <class urllib2.HTTPDefaultErrorHandler>, <class urllib2.HTTPRedirectHandler>, <class urllib2.FTPHandler>, <class urllib2.FileHandler>]
- handlers = []
- proxy_handlers = [<class urllib2.ProxyHandler>]
- replacement_handlers = []
|
class ProxyBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler) |
| |
|
| |
- Method resolution order:
- ProxyBasicAuthHandler
- AbstractBasicAuthHandler
- BaseHandler
Methods defined here:
- http_error_407(self, req, fp, code, msg, headers)
Data and non-method functions defined here:
- __doc__ = None
- __module__ = 'urllib2'
- auth_header = 'Proxy-Authorization'
Methods inherited from AbstractBasicAuthHandler:
- __init__(self, password_mgr=None)
- http_error_auth_reqed(self, authreq, host, req, headers)
- retry_http_basic_auth(self, host, req, realm)
Data and non-method functions inherited from AbstractBasicAuthHandler:
- rx = <_sre.SRE_Pattern object>
Methods inherited from BaseHandler:
- add_parent(self, parent)
- close(self)
|
class ProxyDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler) |
| |
|
| |
- Method resolution order:
- ProxyDigestAuthHandler
- BaseHandler
- AbstractDigestAuthHandler
Methods defined here:
- http_error_407(self, req, fp, code, msg, headers)
Data and non-method functions defined here:
- __doc__ = None
- __module__ = 'urllib2'
- header = 'Proxy-Authorization'
Methods inherited from BaseHandler:
- add_parent(self, parent)
- close(self)
Methods inherited from AbstractDigestAuthHandler:
- __init__(self, passwd=None)
- get_algorithm_impls(self, algorithm)
- get_authorization(self, req, chal)
- get_entity_digest(self, data, chal)
- http_error_auth_reqed(self, authreq, host, req, headers)
- retry_http_digest_auth(self, req, auth)
|
|