portage.util._urlopen module¶
- class portage.util._urlopen.CompressedResponseProcessor(password_mgr=None)¶
Bases:
urllib.request.HTTPBasicAuthHandler
- _parse_realm(header)¶
- add_parent(parent)¶
- auth_header = 'Authorization'¶
- close()¶
- handler_order = 500¶
- http_error_401(req, fp, code, msg, headers)¶
- http_error_auth_reqed(authreq, host, req, headers)¶
- http_request(req)¶
- http_response(req, response)¶
- https_request(req)¶
- https_response(req, response)¶
- retry_http_basic_auth(host, req, realm)¶
- rx = re.compile('(?:^|,)[ \t]*([^ \t,]+)[ \t]+realm=(["\']?)([^"\']*)\\2', re.IGNORECASE)¶
- portage.util._urlopen._http_to_timestamp(http_datetime_string)¶
- portage.util._urlopen._timestamp_to_http(timestamp)¶
- portage.util._urlopen.have_pep_476()¶
Test whether ssl certificate verification is enabled by default for stdlib http clients (PEP 476).
- Returns
bool, True if ssl certificate verification is enabled by default
- portage.util._urlopen.urlopen(url, if_modified_since=None, headers={}, proxies=None)¶