Closed liandeliang closed 2 years ago
code from fasthttp client example
` import ( "github.com/valyala/fasthttp/fasthttpproxy" )
// ... hostWithPort := "example.com:80"
client := &fasthttp.HostClient{ Addr: hostWithPort, } if proxyUrl != "" { if "http" == proxyUrl[:4] { client.Dial = fasthttpproxy.FasthttpHTTPDialer(proxyUrl) } else { client.Dial = fasthttpproxy.FasthttpSocksDialer(proxyUrl) } } e = http2.ConfigureClient(client, http2.ClientOpts{}) if e != nil { return }
`
Thank you for your PR!
code from fasthttp client example
` import ( "github.com/valyala/fasthttp/fasthttpproxy" )
// ... hostWithPort := "example.com:80"
`