package fasthttpproxy

import "github.com/valyala/fasthttp/fasthttpproxy"

Index

Functions

func FasthttpHTTPDialer

func FasthttpHTTPDialer(proxy string) fasthttp.DialFunc

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

func FasthttpSocksDialer(proxyAddr string) fasthttp.DialFunc

FasthttpSocksDialer returns a fasthttp.DialFunc that dials using the provided SOCKS5 proxy.

Example usage:

c := &fasthttp.Client{
	Dial: fasthttpproxy.FasthttpSocksDialer("localhost:9050"),
}

Source Files

http.go socks5.go

Version
v1.15.1
Published
Jul 15, 2020
Platform
js/wasm
Imports
7 packages
Last checked
3 weeks ago

Tools for package owners.