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

Uploaded Source

Built Distribution

aiohttp_raw-0.1.0-py2.py3-none-any.whl (8.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file aiohttp-raw-0.1.0.tar.gz.

File metadata

  • Download URL: aiohttp-raw-0.1.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for aiohttp-raw-0.1.0.tar.gz
Algorithm Hash digest
SHA256 498211e3891472b2096185969256bb9f42581ab05e36e18c9e10b18a6f1df9f7
MD5 5c6f30dabd934e49cc20119cc78ad842
BLAKE2b-256 9cb6b3e4f8c00891b6bfcf4123468fd130aad40127ed1c23d720499001a2ad5b

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for aiohttp_raw-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 eb2047b897068020c64cd231d63fe20f965002cfeb3319ac38f9bfadc00d608d
MD5 2bf1ea718f3766040edd8389ae88ccdb
BLAKE2b-256 9fd163bfb381d848bbd1bf9ec11ecce29a932332a8c92b1c768ab28b8219175c

See more details on using hashes here.

Provenance

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