repositorypackage
0.0.0-20241204050539-7d8f7638dc4f
Repository: https://github.com/tomtom103/cffi-proxy.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
CFFI Go Proxy
Based on https://github.com/elazarl/goproxy which was vendored in to replace the net/http
dependency to github.com/bogdanfinn/fhttp
, making the requests with github.com/bogdanfinn/tls-client
Running the code
go run main.go
Running the benchmark
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python benchmark/test.py
Looking at the results, we validate that the proxy was able to add the x-returned-by
header to the response.
We can also validate that the proxy was able to intercept the request, and add the X-Hello-World
header before sending it to HTTPBIN
Currently the benchmark only works for verify=False
, however the proxy service could be configured to trust a certain CA certificate.
If the client also trusts that CA certificate, verify=False
is no longer needed.