Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Explicitly indicate None as ip_address’s default value

Adrián Chaves037ae5b22e6d
diff --git a/docs/topics/request-response.rst b/docs/topics/request-response.rst
index 89e570028..8f2504a33 100644
--- a/docs/topics/request-response.rst
+++ b/docs/topics/request-response.rst
@@ -685,8 +685,10 @@ Response objects
.. attribute:: Response.ip_address
The IP address of the server from which the Response originated.
+
This attribute is currently only populated by the HTTP 1.1 download
- handler, i.e. for ``http(s)`` responses.
+ handler, i.e. for ``http(s)`` responses. For other handlers,
+ :attr:`ip_address` is always ``None``.
.. method:: Response.copy()