package fasthttpproxy
import "github.com/valyala/fasthttp/fasthttpproxy"
Index ¶
- func FasthttpHTTPDialer(proxy string) fasthttp.DialFunc
- func FasthttpSocksDialer(proxyAddr string) fasthttp.DialFunc
Functions ¶
func FasthttpHTTPDialer ¶
FasthttpHTTPDialer returns a fasthttp.DialFunc that dials using the provided HTTP proxy.
Example usage:
c := &fasthttp.Client{ Dial: fasthttpproxy.FasthttpHTTPDialer("username:password@localhost:9050"), }
func FasthttpSocksDialer ¶
FasthttpSocksDialer returns a fasthttp.DialFunc that dials using the provided SOCKS5 proxy.
Example usage:
c := &fasthttp.Client{ Dial: fasthttpproxy.FasthttpSocksDialer("localhost:9050"), }
Source Files ¶
- Version
- v1.15.1
- Published
- Jul 15, 2020
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 3 weeks ago –
Tools for package owners.