Part of lp.services.timeout View In Hierarchy
Method | __init__ | Undocumented |
Method | fetch | Fetch the URL using a custom HTTP handler supporting timeout. |
Method | cleanup | Reset the connection when the operation timed out. |
Parameters | url | The URL to fetch. |
use_proxy | If True, use Launchpad's configured proxy. | |
allow_ftp | If True, allow ftp:// URLs. | |
allow_file | If True, allow file:// URLs. (Be careful to only pass this if the URL is trusted.) | |
output_file | If not None, download the response content to this file object or path. | |
request_kwargs | Additional keyword arguments passed on to
Session.request . |