
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
WSGIProxy2
Advanced tools
With pip::
$ pip install WSGIProxy2
Install optionnal backends::
$ pip install requests urllib3
Create a proxy::
from wsgiproxy import HostProxy proxy = HostProxy(application_url)
Then use it. Here is an example with WebOb but you can use it like a classic WSGI application::
... ...from webob import Request req = Request.blank('/form.html') resp = req.get_response(proxy) print(resp.text)
The Proxy application accept some keyword arguments. Those arguments are passed to the client during the process.
If no client as specified then python httplib is used. It's recommended to use a more robust client able to manage a connection pool and stuff.
Use urllib3 <http://pypi.python.org/pypi/urllib3>_::
proxy = HostProxy(application_url, client='urllib3')
Use requests <http://pypi.python.org/pypi/requests>_. This client support response streaming::
proxy = HostProxy(application_url, client='requests')
remove stale dep on six
use github actions as CI
Add OPTIONS to defaults allowed methods
Drop restkit support
Drop py26 support
fix tests.
change the way requests iter response
Make allowed_methods check optional
Return the data not gzip decoded when using request
Initial release
FAQs
A WSGI Proxy with various http client backends
We found that WSGIProxy2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.