Update docs for meta key

This commit is contained in:
harshasrinivas 2017-03-15 04:13:47 +05:30
parent e321ac9931
commit 9d97d788c0
2 changed files with 13 additions and 0 deletions

View File

@ -852,6 +852,11 @@ Default: ``2``
Maximum number of times to retry, in addition to the first download.
.. reqmeta:: max_retry_times
If :attr:`Request.meta <scrapy.http.Request.meta>` has ``max_retry_times`` key
set to some value, this setting will be ignored by this middleware for the corresponding request.
.. setting:: RETRY_HTTP_CODES
RETRY_HTTP_CODES

View File

@ -308,6 +308,7 @@ Those are:
* ``ftp_user`` (See :setting:`FTP_USER` for more info)
* ``ftp_password`` (See :setting:`FTP_PASSWORD` for more info)
* :reqmeta:`referrer_policy`
* :reqmeta:`max_retry_times`
.. reqmeta:: bindaddress
@ -342,6 +343,13 @@ download_fail_on_dataloss
Whether or not to fail on broken responses. See:
:setting:`DOWNLOAD_FAIL_ON_DATALOSS`.
.. reqmeta:: max_retry_times
max_retry_times
---------------
The meta key is used set retry times per request. When initialized, the :setting:`RETRY_TIMES` setting will be ignored by the downloader middleware.
.. _topics-request-response-ref-request-subclasses:
Request subclasses