Comments (17)
How about custom scheme, something like unix://socket-path/path ?
from aiohttp.
Not sure it's a good idea for two reasons:
- socket-path should be percent-encoded? (may contain slashes)
- https can be used too (unix+https://socket-path/path?)
I prefer some kwarg to a request or a session.
from aiohttp.
i don't like percent-encoding also, but in that case we can move connection to to separate Connector class/function and remove loop.create_connection from session and client.
how about connector parameter? something like:
aiohttp.request('get', ..., connector=UnixDomainConnector('/tmp/...'))
then it would be possible to create http proxy connector for example
what do you think?
from aiohttp.
Yes. Sounds great
from aiohttp.
Paul, do you want to work on this?
from aiohttp.
Sure, unless you want to do it quicker :)
from aiohttp.
go ahead! :)
from aiohttp.
I'd love this feature oodles! Just adding a 👍 - thanks for working on this!
from aiohttp.
@tailhook let's wait with session integration with connector. i'd like to think about such integration.
from aiohttp.
@fafhrd91, ok, I don't need the feature itself. The debatable question, is that connector might be better used for connection pooling, instead of session. And session left only for cookie handling.
Anyway, feel free to close the issue if you think it done.
from aiohttp.
I'd really be able to use this feature; I'd be happy to test code or whatever :)
It'd be super useful!
from aiohttp.
@tailhook i agree about connection pooling, this is exactly what i'm planing to think about.
from aiohttp.
👍 consuming HTTP over unix sockets via aiohttp would be excellent; there are still plans to flesh out the rest of the interface so this is properly possible, right?
from aiohttp.
yes. i'm planing to commit api changes within next couple days.
from aiohttp.
Excellent, thanks for confirming ❤️
from aiohttp.
i've just commited new changes @ce21cba8869b8b80849850c1d645fe029dc054b2
from aiohttp.
This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.
If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.
from aiohttp.
Related Issues (20)
- Large payloads lead to BrokenPipe inside a request context manager HOT 1
- OSError : bind(): bad family HOT 1
- Error upon attempt to download https://dieunbestechlichen.com/feed HOT 3
- aiohttp 3.9.3 fails to install on Python 3.13.0a4 HOT 4
- aiohttp.web listens both TCP and Unix socket if `-U` has been supplied HOT 4
- TCPConnector / enable `limit_per_url` HOT 5
- Stability issues with gunicorn --max-requests HOT 11
- ClientSession cannot reuse connection pool HOT 4
- Using underscore to name a field in a named tuple HOT 2
- Request Pynacl Encryption Middleware HOT 13
- ASGI support HOT 4
- tests/test_pytest_plugin.py::test_aiohttp_plugin fails on Alpine Linux (python 3.11 and python 3.12) HOT 12
- ERROR: aiohttp has an invalid wheel, .dist-info directory 'yarl-1.9.4.dist-info' does not start with 'aiohttp' HOT 2
- Pass max_length parameter to ZLibDecompressor HOT 5
- "Unclosed client session" when initialization fails HOT 2
- Expired cookies not listed in the response cookies HOT 2
- Reserve generic property on app to store app state in a typed fashion HOT 1
- Please update llhttp to 9.2.1 HOT 7
- Using MultipartWriter.append_json breaks in 3.9.4 with AssertionError "assert CONTENT_DISPOSITION in payload.headers" HOT 8
- Exception occurred while requesting https URL using proxy aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aiohttp.