fasthttp-reverse-proxy reverse http proxy handler based on fasthttp. Features HTTP reverse proxy based fasthttp it's faster than golang standard httputil.ReverseProxy library. implemented by fasthttp.HostClient support balance distribute based rounddobin HostClient object pool with an overlay of fasthttp...
# ws-fasthttp-reverse-proxy ### get start demo Run main server and proxy server ```sh go run server/main.go # listen on localhost:8080/echo go run ws_proxy.go # listen on localhost:8081/echo ``` Run client examples: either check golang one ```sh go run client/main.go # conn...
reverse http / websocket proxy based on fasthttp. Contribute to yeqown/fasthttp-reverse-proxy development by creating an account on GitHub.
Currently reverse proxy may be implemented quite easily usingHostClient: import("github.com/valyala/fasthttp")varproxyClient=&fasthttp.HostClient{Addr:"upstream.host:port",// set other options here if required - most notably timeouts.}funcReverseProxyHandler(ctx*fasthttp.RequestCtx) {req:=&ctx.Requ...
fasthttp-reverse-proxy reverse http proxy handler based on fasthttp. Features HTTP reverse proxy based fasthttp it's faster than golang standard httputil.ReverseProxy library. implemented by fasthttp.HostClient support balance distribute based rounddobin HostClient object pool with an overlay of fasthttp...
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]proxy.Weight{ // "localhost:8080": 20, // "localhost:8081": 30, // "localhos...
reverse http / websocket proxy based on fasthttp. Contribute to yeqown/fasthttp-reverse-proxy development by creating an account on GitHub.
In scenarios where the reverse proxy needs to handle large files, it can run out of memory and cause an OOM error. To prevent this, it’s necessary to enable the StreamResponseBody option in fasthtt...