You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

asgiproxy

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asgiproxy

Tools for building HTTP and Websocket proxies for the asynchronous ASGI protocol

0.2.0
pipPyPI
Maintainers
2

asgiproxy

Tools for building HTTP and Websocket proxies for the asynchronous ASGI protocol.

Usage

Command line usage

asgiproxy includes a small command-line tool that transparently (aside from rewriting the "Host" header) proxies all HTTP and WebSocket requests to another endpoint.

It may be useful on its own, and also serves as a reference on how to use the library.

While the library itself does not require Uvicorn, the CLI tool does.

$ python -m asgiproxy http://example.com/

starts a HTTP server on http://0.0.0.0:40404/ which should show you the example.com content.

API usage

Documentation forthcoming. For the time being, see asgiproxy/__main__.py.

Running tests

Tests are run with Py.test.

py.test

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts