1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-04 16:07:57 +03:00

Update default_url_fetcher's documentation

This commit is contained in:
Guillaume Ayoub 2019-04-12 16:34:19 +02:00
parent cc512b3ec0
commit 5ffdc8270a

View File

@ -210,6 +210,10 @@ def default_url_fetcher(url, timeout=10, ssl_context=None):
:type url: str
:param url: The URL of the resource to fetch.
:type timeout: int
:param timeout: The number of seconds before HTTP requests are dropped.
:type ssl_context: ssl.SSLContext
:param ssl_context: An SSL context used for HTTP requests.
:raises: An exception indicating failure, e.g. :obj:`ValueError` on
syntactically invalid URL.
:returns: A :obj:`dict` with the following keys: