Skip to main content

HTTP communication through raw sockets using aiohttp for RFC compliance testing

Project description

aiohttp-raw

PyPI version Downloads PyPI - Python Version

Use aiohttp to send HTTP raw sockets (To Test RFC Compliance)

Logo

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


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)

Uploaded Source

Built Distribution

aiohttp_raw-0.1.1-py2.py3-none-any.whl (8.7 kB view details)

Uploaded Python 2 Python 3

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

Hashes for aiohttp-raw-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8504bcdf3b56478daa071126b8b4c70d252577db99c126ee61dd293baa0f8211
MD5 25184284fdbe763ac32b9c6bd134cc5c
BLAKE2b-256 5e105dc01a6d15fc53839c5540306d26a0c4c667f216dcaa5439fbe92f954c7f

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiohttp-raw-0.1.1.tar.gz:

Publisher: publish.yml on realgam3/aiohttp-raw

Attestations:

File details

Details for the file aiohttp_raw-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for aiohttp_raw-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2b94c2f4cdb795dfc68bf2c100c55b68e1252a2e810d6364469371c807273bc9
MD5 8e79fdb293146904bcf537bab3f1202f
BLAKE2b-256 92e910bf10172ccfe7e76e36853fdcd7528893a1d74550931298aca0dbb2779f

See more details on using hashes here.

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

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page