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.2.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

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

Hashes for aiohttp-raw-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a2c4c159a80f250125ef2c4f9d0d8977a855911aa011983dbfeab0d714b6c389
MD5 ba391b7d9fdcf9528ebe52e834b75e1e
BLAKE2b-256 cf33213cb00b259d339d82af191f7914afccc0e666593539653bef9bc95d2580

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on realgam3/aiohttp-raw

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for aiohttp_raw-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c8ca4a0482a6df3c9162a2e30427454244d304123e5d4f5c8c56da1489e837f9
MD5 5b4fb0785a6ab86932fcfe41e750b73a
BLAKE2b-256 bd41bba915fe370b95f99b5b898932c1c9cc2c4bc969be3702a29537550d8880

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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