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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiohttp-raw-0.2.0.tar.gz.
File metadata
- Download URL: aiohttp-raw-0.2.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2c4c159a80f250125ef2c4f9d0d8977a855911aa011983dbfeab0d714b6c389
|
|
| MD5 |
ba391b7d9fdcf9528ebe52e834b75e1e
|
|
| BLAKE2b-256 |
cf33213cb00b259d339d82af191f7914afccc0e666593539653bef9bc95d2580
|
Provenance
The following attestation bundles were made for aiohttp-raw-0.2.0.tar.gz:
Publisher:
publish.yml on realgam3/aiohttp-raw
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiohttp_raw-0.2.0.tar.gz -
Subject digest:
a2c4c159a80f250125ef2c4f9d0d8977a855911aa011983dbfeab0d714b6c389 - Sigstore transparency entry: 295326305
- Sigstore integration time:
-
Permalink:
realgam3/aiohttp-raw@092230f8d1efba526bd0d6479c8e55286cd5f698 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/realgam3
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@092230f8d1efba526bd0d6479c8e55286cd5f698 -
Trigger Event:
push
-
Statement type:
File details
Details for the file aiohttp_raw-0.2.0-py2.py3-none-any.whl.
File metadata
- Download URL: aiohttp_raw-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8ca4a0482a6df3c9162a2e30427454244d304123e5d4f5c8c56da1489e837f9
|
|
| MD5 |
5b4fb0785a6ab86932fcfe41e750b73a
|
|
| BLAKE2b-256 |
bd41bba915fe370b95f99b5b898932c1c9cc2c4bc969be3702a29537550d8880
|
Provenance
The following attestation bundles were made for aiohttp_raw-0.2.0-py2.py3-none-any.whl:
Publisher:
publish.yml on realgam3/aiohttp-raw
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiohttp_raw-0.2.0-py2.py3-none-any.whl -
Subject digest:
c8ca4a0482a6df3c9162a2e30427454244d304123e5d4f5c8c56da1489e837f9 - Sigstore transparency entry: 295326311
- Sigstore integration time:
-
Permalink:
realgam3/aiohttp-raw@092230f8d1efba526bd0d6479c8e55286cd5f698 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/realgam3
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@092230f8d1efba526bd0d6479c8e55286cd5f698 -
Trigger Event:
push
-
Statement type: