Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/11324.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Documented valid request URL forms when using :class:`~aiohttp.UnixConnector`, including ``base_url`` with an HTTP host -- by :user:`muhammad-a-dev`.
1 change: 1 addition & 0 deletions CHANGES/13781.doc.rst
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ Mitchell Ferree
monasco
Morgan Delahaye-Prat
Moss Collum
Muhammad A Dev
Mun Gwan-gyeong
Navid Sheikhol
Nicolas Braem
Expand Down
9 changes: 9 additions & 0 deletions docs/client_advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,15 @@ If your HTTP server uses UNIX domain sockets you can use
conn = aiohttp.UnixConnector(path='/path/to/socket')
session = aiohttp.ClientSession(connector=conn)

Request URLs continue to work much the same as any other connector.
The protocol is still HTTP, therefore the ``http://`` scheme should still be used.
While the connector always routes to the socket, the domain/port in the URL is
still used to create the ``Host`` header and must be included.
For example::

async with session.get('http://localhost/get') as resp:
...


Custom socket creation
^^^^^^^^^^^^^^^^^^^^^^
Expand Down
Loading