forward-proxy

command
v0.0.0-...-ec3c177 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 5 Imported by: 0

README

A proxy integrate both forward and reverse

Run the server and make following reqeust to test forward function. Remember to set forward=ok in the header so the middleware can tell which one is for forward and which one is for reverse. The demo can be adapted to puer forward proxy.

import requests
def test_forward():
  res=requests.get("http://www.baidu.com",headers={"forward":"ok"},proxies={"http":"http://127.0.0.1:8888"})
  print (res.text)
test_forward()

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL