提交 f7031c08 编写于 作者: E Elias Dorneles

updating list of Request.meta special keys

上级 f3110aae
......@@ -603,6 +603,8 @@ HttpProxyMiddleware
.. versionadded:: 0.8
.. reqmeta:: proxy
.. class:: HttpProxyMiddleware
This middleware sets the HTTP proxy to use for requests, by setting the
......
......@@ -224,12 +224,15 @@ Those are:
* :reqmeta:`dont_redirect`
* :reqmeta:`dont_retry`
* :reqmeta:`handle_httpstatus_list`
* :reqmeta:`handle_httpstatus_all`
* ``dont_merge_cookies`` (see ``cookies`` parameter of :class:`Request` constructor)
* :reqmeta:`cookiejar`
* :reqmeta:`redirect_urls`
* :reqmeta:`bindaddress`
* :reqmeta:`dont_obey_robotstxt`
* :reqmeta:`download_timeout`
* :reqmeta:`download_maxsize`
* :reqmeta:`proxy`
.. reqmeta:: bindaddress
......
......@@ -433,6 +433,8 @@ The maximum response size (in bytes) that downloader will download.
If you want to disable it set to 0.
.. reqmeta:: download_maxsize
.. note::
This size can be set per spider using :attr:`download_maxsize`
......
......@@ -225,9 +225,12 @@ this::
.. reqmeta:: handle_httpstatus_list
.. reqmeta:: handle_httpstatus_all
The ``handle_httpstatus_list`` key of :attr:`Request.meta
<scrapy.http.Request.meta>` can also be used to specify which response codes to
allow on a per-request basis.
allow on a per-request basis. You can also set the meta key ``handle_httpstatus_all``
to ``True`` if you want to allow any response code for a request.
Keep in mind, however, that it's usually a bad idea to handle non-200
responses, unless you really know what you're doing.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册