Let us walk on the 3-isogeny graph
|
Data Structures | |
class | BatchDownloader |
class | Downloader |
Functions | |
Optional[int] | _get_http_response_size (Response resp) |
Iterable[bytes] | _prepare_download (Response resp, Link link, str progress_bar) |
str | sanitize_content_filename (str filename) |
str | parse_content_disposition (str content_disposition, str default_filename) |
str | _get_http_response_filename (Response resp, Link link) |
Response | _http_get_download (PipSession session, Link link) |
Variables | |
logger = logging.getLogger(__name__) | |
Download files with progress indicators.
Get an ideal filename from the given HTTP response, falling back to the link filename if not provided.
Definition at line 94 of file download.py.
References i, and pip._internal.network.download.parse_content_disposition().
Referenced by BatchDownloader.__call__(), and Downloader.__call__().
|
protected |
Definition at line 23 of file download.py.
References i.
Referenced by pip._internal.network.download._prepare_download().
Definition at line 115 of file download.py.
References i.
Referenced by BatchDownloader.__call__(), and Downloader.__call__().
Definition at line 30 of file download.py.
References pip._internal.network.download._get_http_response_size(), and i.
Referenced by BatchDownloader.__call__(), and Downloader.__call__().
str parse_content_disposition | ( | str | content_disposition, |
str | default_filename | ||
) |
Parse the "filename" value from a Content-Disposition header, and return the default filename if the result is empty.
Definition at line 79 of file download.py.
References i, and pip._internal.network.download.sanitize_content_filename().
Referenced by pip._internal.network.download._get_http_response_filename().
str sanitize_content_filename | ( | str | filename | ) |
Sanitize the "filename" value from a Content-Disposition header.
Definition at line 72 of file download.py.
References i.
Referenced by pip._internal.network.download.parse_content_disposition().
logger = logging.getLogger(__name__) |
Definition at line 20 of file download.py.