mirror of https://github.com/scrapy/scrapy.git
Merge pull request #898 from scrapy/download-timeout
[MRG] DOC document download_timeout
This commit is contained in:
commit
675fd5ba04
|
|
@ -263,7 +263,14 @@ DownloadTimeoutMiddleware
|
|||
.. class:: DownloadTimeoutMiddleware
|
||||
|
||||
This middleware sets the download timeout for requests specified in the
|
||||
:setting:`DOWNLOAD_TIMEOUT` setting.
|
||||
:setting:`DOWNLOAD_TIMEOUT` setting or :attr:`download_timeout`
|
||||
spider attribute.
|
||||
|
||||
.. note::
|
||||
|
||||
You can also set download timeout per-request using
|
||||
:reqmeta:`download_timeout` Request.meta key; this is supported
|
||||
even when DownloadTimeoutMiddleware is disabled.
|
||||
|
||||
HttpAuthMiddleware
|
||||
------------------
|
||||
|
|
|
|||
|
|
@ -229,6 +229,7 @@ Those are:
|
|||
* :reqmeta:`redirect_urls`
|
||||
* :reqmeta:`bindaddress`
|
||||
* :reqmeta:`dont_obey_robotstxt`
|
||||
* :reqmeta:`download_timeout`
|
||||
|
||||
.. reqmeta:: bindaddress
|
||||
|
||||
|
|
@ -237,6 +238,15 @@ bindaddress
|
|||
|
||||
The IP of the outgoing IP address to use for the performing the request.
|
||||
|
||||
.. reqmeta:: download_timeout
|
||||
|
||||
download_timeout
|
||||
----------------
|
||||
|
||||
The amount of time (in secs) that the downloader will wait before timing out.
|
||||
See also: :setting:`DOWNLOAD_TIMEOUT`.
|
||||
|
||||
|
||||
.. _topics-request-response-ref-request-subclasses:
|
||||
|
||||
Request subclasses
|
||||
|
|
|
|||
|
|
@ -416,6 +416,12 @@ Default: ``180``
|
|||
|
||||
The amount of time (in secs) that the downloader will wait before timing out.
|
||||
|
||||
.. note::
|
||||
|
||||
This timeout can be set per spider using :attr:`download_timeout`
|
||||
spider attribute and per-request using :reqmeta:`download_timeout`
|
||||
Request.meta key.
|
||||
|
||||
.. setting:: DUPEFILTER_CLASS
|
||||
|
||||
DUPEFILTER_CLASS
|
||||
|
|
|
|||
Loading…
Reference in New Issue