
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
httpunixsocketconnection
Advanced tools
Really small Python class that extends native http.client.HTTPConnection allowing sending HTTP requests to Unix Sockets
Really small Python class that extends native http.client.HTTPConnection allowing sending HTTP requests to Unix Sockets
poetry add httpunixsocketconnection
pip install httpunixsocketconnection
Because the class base is http.client.HTTPConnection
, the API is almost the same.
Only the constructor and connect
method is different.
With the rest please follow the official docs.
from httpunixsocketconnection import HTTPUnixSocketConnection
# Create a connection
conn = HTTPUnixSocketConnection(
unix_socket="/var/run/some.unix.socket"
# timeout=Like in HTTPConnection
# blocksize=Like in HTTPConnection
)
from httpunixsocketconnection import HTTPUnixSocketConnection
conn = HTTPUnixSocketConnection("/var/run/docker.sock")
conn.request("GET", "/containers/json")
res = conn.getresponse()
print(res.status, res.reason)
content = res.read().decode("utf-8")
print(content)
FAQs
Really small Python class that extends native http.client.HTTPConnection allowing sending HTTP requests to Unix Sockets
We found that httpunixsocketconnection demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.