| |
- exceptions.IOError(exceptions.EnvironmentError)
-
- URLError
-
- HTTPError(URLError, urllib.addinfourl)
- AbstractBasicAuthHandler
-
- HTTPBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler)
- ProxyBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler)
- AbstractDigestAuthHandler
- BaseHandler
-
- AbstractHTTPHandler
-
- HTTPHandler
- HTTPSHandler
- FTPHandler
-
- CacheFTPHandler
- FileHandler
- HTTPCookieProcessor
- HTTPDefaultErrorHandler
- HTTPDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler)
- HTTPErrorProcessor
- HTTPRedirectHandler
- ProxyDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler)
- ProxyHandler
- UnknownHandler
- HTTPPasswordMgr
-
- HTTPPasswordMgrWithDefaultRealm
- OpenerDirector
- Request
class AbstractDigestAuthHandler |
| |
Methods defined here:
- __init__(self, passwd=None)
- get_algorithm_impls(self, algorithm)
- get_authorization(self, req, chal)
- get_cnonce(self, nonce)
- get_entity_digest(self, data, chal)
- http_error_auth_reqed(self, auth_header, host, req, headers)
- reset_retry_count(self)
- retry_http_digest_auth(self, req, auth)
|
class CacheFTPHandler(FTPHandler) |
| |
- Method resolution order:
- CacheFTPHandler
- FTPHandler
- BaseHandler
Methods defined here:
- __init__(self)
- # XXX would be nice to have pluggable cache strategies
# XXX this stuff is definitely not thread safe
- check_cache(self)
- clear_cache(self)
- connect_ftp(self, user, passwd, host, port, dirs, timeout)
- setMaxConns(self, m)
- setTimeout(self, t)
Methods inherited from FTPHandler:
- ftp_open(self, req)
Methods inherited from BaseHandler:
- __lt__(self, other)
- add_parent(self, parent)
- close(self)
Data and other attributes inherited from BaseHandler:
- handler_order = 500
|
class HTTPBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler) |
| |
- Method resolution order:
- HTTPBasicAuthHandler
- AbstractBasicAuthHandler
- BaseHandler
Methods defined here:
- http_error_401(self, req, fp, code, msg, headers)
Data and other attributes defined here:
- 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 other attributes inherited from AbstractBasicAuthHandler:
- rx = <_sre.SRE_Pattern object>
Methods inherited from BaseHandler:
- __lt__(self, other)
- add_parent(self, parent)
- close(self)
Data and other attributes inherited from BaseHandler:
- handler_order = 500
|
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 other attributes defined here:
- auth_header = 'Authorization'
- handler_order = 490
Methods inherited from BaseHandler:
- __lt__(self, other)
- 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_cnonce(self, nonce)
- get_entity_digest(self, data, chal)
- http_error_auth_reqed(self, auth_header, host, req, headers)
- reset_retry_count(self)
- 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
- exceptions.BaseException
- __builtin__.object
- urllib.addinfourl
- urllib.addbase
Methods defined here:
- __init__(self, url, code, msg, hdrs, fp)
- __str__(self)
- info(self)
Data descriptors defined here:
- reason
Data descriptors inherited from URLError:
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes inherited from exceptions.IOError:
- __new__ = <built-in method __new__ of type object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
Methods inherited from exceptions.EnvironmentError:
- __reduce__(...)
Data descriptors inherited from exceptions.EnvironmentError:
- errno
- exception errno
- filename
- exception filename
- strerror
- exception strerror
Methods inherited from exceptions.BaseException:
- __delattr__(...)
- x.__delattr__('name') <==> del x.name
- __getattribute__(...)
- x.__getattribute__('name') <==> x.name
- __getitem__(...)
- x.__getitem__(y) <==> x[y]
- __getslice__(...)
- x.__getslice__(i, j) <==> x[i:j]
Use of negative indices is not supported.
- __repr__(...)
- x.__repr__() <==> repr(x)
- __setattr__(...)
- x.__setattr__('name', value) <==> x.name = value
- __setstate__(...)
- __unicode__(...)
Data descriptors inherited from exceptions.BaseException:
- __dict__
- args
- message
Methods inherited from urllib.addinfourl:
- getcode(self)
- geturl(self)
Methods inherited from urllib.addbase:
- close(self)
|
class HTTPHandler(AbstractHTTPHandler) |
| |
- Method resolution order:
- HTTPHandler
- AbstractHTTPHandler
- BaseHandler
Methods defined here:
- http_open(self, req)
- http_request = do_request_(self, request)
Methods inherited from AbstractHTTPHandler:
- __init__(self, debuglevel=0)
- do_open(self, http_class, req, **http_conn_args)
- Return an addinfourl object for the request, using http_class.
http_class must implement the HTTPConnection API from httplib.
The addinfourl return value is a file-like object. It also
has methods and attributes including:
- info(): return a mimetools.Message object for the headers
- geturl(): return the original request URL
- code: HTTP status code
- do_request_(self, request)
- set_http_debuglevel(self, level)
Methods inherited from BaseHandler:
- __lt__(self, other)
- add_parent(self, parent)
- close(self)
Data and other attributes inherited from BaseHandler:
- handler_order = 500
|
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, default_port=True)
- Accept authority or URI and extract only the authority and path.
|
class HTTPPasswordMgrWithDefaultRealm(HTTPPasswordMgr) |
| |
Methods defined here:
- find_user_password(self, realm, authuri)
Methods inherited from HTTPPasswordMgr:
- __init__(self)
- add_password(self, realm, uri, user, passwd)
- 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, default_port=True)
- Accept authority or URI and extract only the authority and path.
|
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.
- http_error_303 = http_error_302(self, req, fp, code, msg, headers)
- http_error_307 = http_error_302(self, req, fp, code, msg, headers)
- redirect_request(self, req, fp, code, msg, headers, newurl)
- Return a Request or None in response to a redirect.
This is called by the http_error_30x methods when a
redirection response is received. If a redirection should
take place, return a new Request to allow http_error_30x to
perform the redirect. Otherwise, raise HTTPError if no-one
else should try to handle this url. Return None if you can't
but another Handler might.
Data and other attributes defined here:
- inf_msg = 'The HTTP server returned a redirect error that w...n infinite loop.\nThe last 30x error message was:\n'
- max_redirections = 10
- max_repeats = 4
Methods inherited from BaseHandler:
- __lt__(self, other)
- add_parent(self, parent)
- close(self)
Data and other attributes inherited from BaseHandler:
- handler_order = 500
|
class HTTPSHandler(AbstractHTTPHandler) |
| |
- Method resolution order:
- HTTPSHandler
- AbstractHTTPHandler
- BaseHandler
Methods defined here:
- __init__(self, debuglevel=0, context=None)
- https_open(self, req)
- https_request = do_request_(self, request)
Methods inherited from AbstractHTTPHandler:
- do_open(self, http_class, req, **http_conn_args)
- Return an addinfourl object for the request, using http_class.
http_class must implement the HTTPConnection API from httplib.
The addinfourl return value is a file-like object. It also
has methods and attributes including:
- info(): return a mimetools.Message object for the headers
- geturl(): return the original request URL
- code: HTTP status code
- do_request_(self, request)
- set_http_debuglevel(self, level)
Methods inherited from BaseHandler:
- __lt__(self, other)
- add_parent(self, parent)
- close(self)
Data and other attributes inherited from BaseHandler:
- handler_order = 500
|
class ProxyBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler) |
| |
- Method resolution order:
- ProxyBasicAuthHandler
- AbstractBasicAuthHandler
- BaseHandler
Methods defined here:
- http_error_407(self, req, fp, code, msg, headers)
Data and other attributes defined here:
- 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 other attributes inherited from AbstractBasicAuthHandler:
- rx = <_sre.SRE_Pattern object>
Methods inherited from BaseHandler:
- __lt__(self, other)
- add_parent(self, parent)
- close(self)
Data and other attributes inherited from BaseHandler:
- handler_order = 500
|
class ProxyDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler) |
| |
- Method resolution order:
- ProxyDigestAuthHandler
- BaseHandler
- AbstractDigestAuthHandler
Methods defined here:
- http_error_407(self, req, fp, code, msg, headers)
Data and other attributes defined here:
- auth_header = 'Proxy-Authorization'
- handler_order = 490
Methods inherited from BaseHandler:
- __lt__(self, other)
- 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_cnonce(self, nonce)
- get_entity_digest(self, data, chal)
- http_error_auth_reqed(self, auth_header, host, req, headers)
- reset_retry_count(self)
- retry_http_digest_auth(self, req, auth)
|
class Request |
| |
Methods defined here:
- __getattr__(self, attr)
- __init__(self, url, data=None, headers={}, origin_req_host=None, unverifiable=False)
- add_data(self, data)
- add_header(self, key, val)
- add_unredirected_header(self, key, val)
- get_data(self)
- get_full_url(self)
- get_header(self, header_name, default=None)
- get_host(self)
- get_method(self)
- get_origin_req_host(self)
- get_selector(self)
- get_type(self)
- has_data(self)
- has_header(self, header_name)
- has_proxy(self)
- header_items(self)
- is_unverifiable(self)
- set_proxy(self, host, type)
|
|