【文件属性】:
文件名称:goproxy:Go HTTP(S)代理库, 支持中间人代理解密HTTPS
文件大小:19KB
文件格式:ZIP
更新时间:2021-05-01 17:12:47
Go
goproxy
Go HTTP(S)代理库, 支持中间人代理解密HTTPS
安装
go get github.com/ouqiang/goproxy
使用
package main
import (
"net/http"
"time"
"github.com/ouqiang/goproxy"
)
func main() {
proxy := goproxy.New()
server := &http.Server{
Addr: ":8080",
Handler: proxy,
ReadTimeout: 1 * time.Minute,
WriteTimeout: 1 * time.Minute,
}
err := server.ListenAndServe()
if err != nil {
panic(err)
}
}
代
【文件预览】:
goproxy-master
----.gitignore(5B)
----go.mod(43B)
----delegate.go(2KB)
----LICENSE(11KB)
----proxy.go(10KB)
----README.md(4KB)
----mitm-proxy.crt(2KB)
----cert()
--------certificate.go(11KB)
--------cache.go(782B)