HTTP communication through raw sockets using aiohttp for RFC compliance testing
Project description
aiohttp-raw
Use aiohttp to send HTTP raw sockets (To Test RFC Compliance)
Usage
import asyncio
import aiohttp_raw
async def main():
req = b"GET /get HTTP/1.1\r\nHost: httpbin.org\r\n\r\n"
async with aiohttp_raw.ClientSession() as session:
async with session.raw("http://httpbin.org/get", data=req) as response:
print(await response.text())
loop = asyncio.new_event_loop()
loop.run_until_complete(main())
Installation
Prerequisites
- Python 3.8+
pip3 install aiohttp-raw
# speedups
pip install aiohttp[speedups]
# socks
pip install aiohttp[socks]
# speedups-socks
pip install aiohttp[speedups-socks]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiohttp-raw-0.1.1.tar.gz
(8.2 kB
view details)
Built Distribution
File details
Details for the file aiohttp-raw-0.1.1.tar.gz
.
File metadata
- Download URL: aiohttp-raw-0.1.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8504bcdf3b56478daa071126b8b4c70d252577db99c126ee61dd293baa0f8211 |
|
MD5 | 25184284fdbe763ac32b9c6bd134cc5c |
|
BLAKE2b-256 | 5e105dc01a6d15fc53839c5540306d26a0c4c667f216dcaa5439fbe92f954c7f |
Provenance
The following attestation bundles were made for aiohttp-raw-0.1.1.tar.gz
:
Publisher:
publish.yml
on realgam3/aiohttp-raw
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
aiohttp_raw-0.1.1.tar.gz
- Subject digest:
8504bcdf3b56478daa071126b8b4c70d252577db99c126ee61dd293baa0f8211
- Sigstore transparency entry: 148235814
- Sigstore integration time:
- Predicate type:
File details
Details for the file aiohttp_raw-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: aiohttp_raw-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b94c2f4cdb795dfc68bf2c100c55b68e1252a2e810d6364469371c807273bc9 |
|
MD5 | 8e79fdb293146904bcf537bab3f1202f |
|
BLAKE2b-256 | 92e910bf10172ccfe7e76e36853fdcd7528893a1d74550931298aca0dbb2779f |
Provenance
The following attestation bundles were made for aiohttp_raw-0.1.1-py2.py3-none-any.whl
:
Publisher:
publish.yml
on realgam3/aiohttp-raw
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
aiohttp_raw-0.1.1-py2.py3-none-any.whl
- Subject digest:
2b94c2f4cdb795dfc68bf2c100c55b68e1252a2e810d6364469371c807273bc9
- Sigstore transparency entry: 148235816
- Sigstore integration time:
- Predicate type: