aiohttp-raw 0.1.0

Creator: railscoderz

Last updated:

0 purchases

aiohttp-raw 0.1.0 Image
aiohttp-raw 0.1.0 Images

Languages

Categories

Add to Cart

Description:

aiohttpraw 0.1.0

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]

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.