Scrapy, a fast high-level web crawling & scraping framework for Python.
Document IPv6 support of the HTTP download handlers (#8344)
Adrian740bbc0f0379
diff --git a/docs/topics/download-handlers.rst b/docs/topics/download-handlers.rstindex ab87a0ebb..2e58c8833 100644--- a/docs/topics/download-handlers.rst+++ b/docs/topics/download-handlers.rst@@ -182,6 +182,7 @@ individual handler docs for more differences:- Proxies- Bad headers- TLS+ - IPv6- Header case* - :class:`Aiohttp <scrapy.core.downloader.handlers._aiohttp.AiohttpDownloadHandler>`- asyncio@@ -189,6 +190,7 @@ individual handler docs for more differences:- HTTP- Fail- Stdlib ``ssl``+ - Yes- As written* - :class:`H2 <scrapy.core.downloader.handlers.http2.H2DownloadHandler>`- Reactor, :ref:`twisted-http2 <extras>` extra@@ -196,6 +198,7 @@ individual handler docs for more differences:- None- Not applicable- ``cryptography``+ - Needs a setting- Lowercase* - :class:`HTTP11 <scrapy.core.downloader.handlers.http11.HTTP11DownloadHandler>`- Reactor@@ -203,6 +206,7 @@ individual handler docs for more differences:- HTTP- Skip bad- ``cryptography``+ - Needs a setting- Capitalized* - :class:`Httpx <scrapy.core.downloader.handlers._httpx.HttpxDownloadHandler>`- asyncio, :ref:`httpx <extras>` extra@@ -210,6 +214,7 @@ individual handler docs for more differences:- HTTP, SOCKS- Fail- Stdlib ``ssl``+ - Yes, except through a proxy- As writtenBad header handling is what a handler does when a response has a bad header@@ -217,6 +222,11 @@ line, e.g. one with no colon in it, which some servers send. Handlers that skipbad header lines, like web browsers do, still parse the header lines that followthem; other handlers also lose those, or cannot download such responses at all.+Handlers that require a reactor resolve hosts, including IPv6 address literals+such as ``https://[::1]/``, with the resolver set in+:setting:`TWISTED_DNS_RESOLVER`, whose default value only supports IPv4. To use+IPv6 with them, set it to ``scrapy.resolver.CachingHostnameResolver``.+Because HTTP/2 requires lowercase header names, handlers only keep the case ofyour header names over HTTP/1.1.@@ -436,6 +446,10 @@ Other limitations:limitations of ``httpx``) which may lead to higher resource usage whenusing proxy rotation.+- Requests to a URL with an IPv6 address literal, such as+ ``https://[::1]/``, `do not work through a proxy+ <https://github.com/pydantic/httpx2/pull/1091>`__.+.. setting:: HTTPX_HTTP2_ENABLEDHTTPX_HTTP2_ENABLED