fasthttp-reverse-proxy:基于fasthttp的反向http websocket代理

时间:2021-05-10 09:15:10
【文件属性】:
文件名称:fasthttp-reverse-proxy:基于fasthttp的反向http websocket代理
文件大小:422KB
文件格式:ZIP
更新时间:2021-05-10 09:15:10
go http-proxy lib reverse-proxy websocket-proxy 快速http反向代理 基于fasthttp的反向http代理处理程序。 特征 代理客户端支持的pool 。 比golang标准的httputil.ReverseProxy更快 fasthttp.HostClient的简单fasthttp.HostClient 网络套接字代理 支持基于平衡分配的rounddobin 开始吧 HTTP(带平衡器选项) import ( "log" "github.com/valyala/fasthttp" proxy "github.com/yeqown/fasthttp-reverse-proxy/v2" ) var ( proxyServer = proxy . NewReverseProxy ( "localhost:8080" ) // use with balancer // weights = map[string]p
【文件预览】:
fasthttp-reverse-proxy-master
----pool.go(876B)
----go.mod(177B)
----balancer_test.go(1KB)
----debug.go(202B)
----go.sum(3KB)
----balancer.go(2KB)
----reverseproxy_option.go(2KB)
----examples()
--------fasthttp-reverse-proxy()
--------https-reverse-proxy()
--------http-reverse-proxy()
--------fasthttp-reverse-proxy-with-pool()
--------server.go(675B)
--------ws-fasthttp-reverse-proxy()
--------fasthttp-reverse-proxy-with-bla()
----benchmark()
--------ws_proxy_benchmark.go(1KB)
--------ws_benchmark.js(983B)
----ws_reverseproxy_test.go(2KB)
----LICENSE(1KB)
----ws_reverseproxy.go(6KB)
----doc.go(273B)
----channelpool.go(4KB)
----reverseproxy.go(6KB)
----reverseproxy_test.go(2KB)
----README.md(3KB)
----docs()
--------ws-benchmark.md(6KB)
--------http-benchmark.md(2KB)
--------ws-proxy-benchmark.jpg(286KB)
----channelpool_test.go(1KB)
----.gitignore(274B)

网友评论