Categorygithub.com/webx-top/reverseproxy
modulepackage
0.0.2
Repository: https://github.com/webx-top/reverseproxy.git
Documentation: pkg.go.dev

# README

#reverseproxy

Golang写的HTTP和websocket反向代理。

支持net/http和fasthttp。

本项目是从 https://github.com/tsuru/planb 将反向代理功能单独剥离出来的一个独立的包。

router := &recoderRouter{dst: ts.URL}
var rp ReverseProxy = &FastReverseProxy{}
addr, err := rp.Initialize(ReverseProxyConfig{Listen: "127.0.0.1:0", Router: router, RequestIDHeader: "X-RID"})
go rp.Listen()
defer rp.Stop()

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author