aboutsummaryrefslogtreecommitdiff
path: root/fasthttpproxy
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <Oleksandr_Redko@epam.com> 2023-08-30 14:07:23 +0300
committerGravatar Kirill Danshin <kirill@danshin.pro> 2023-08-30 14:13:49 +0200
commit8236f8d49aab9dd2068cd44d480611e9813b9023 (patch)
treec761475ca2a81fee0b80b05ba5808985b88f5f55 /fasthttpproxy
parentdocs: fix typos in comments and tests (diff)
downloadfasthttp-8236f8d49aab9dd2068cd44d480611e9813b9023.tar.gz
fasthttp-8236f8d49aab9dd2068cd44d480611e9813b9023.tar.bz2
fasthttp-8236f8d49aab9dd2068cd44d480611e9813b9023.zip
fasthttpproxy: fix doc examples
Diffstat (limited to 'fasthttpproxy')
-rw-r--r--fasthttpproxy/proxy_env.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/fasthttpproxy/proxy_env.go b/fasthttpproxy/proxy_env.go
index 0d409a0..038f5cf 100644
--- a/fasthttpproxy/proxy_env.go
+++ b/fasthttpproxy/proxy_env.go
@@ -25,7 +25,7 @@ const (
// Example usage:
//
// c := &fasthttp.Client{
-// Dial: fasthttp.FasthttpProxyHTTPDialer(),
+// Dial: fasthttpproxy.FasthttpProxyHTTPDialer(),
// }
func FasthttpProxyHTTPDialer() fasthttp.DialFunc {
return FasthttpProxyHTTPDialerTimeout(0)
@@ -37,7 +37,7 @@ func FasthttpProxyHTTPDialer() fasthttp.DialFunc {
// Example usage:
//
// c := &fasthttp.Client{
-// Dial: fasthttp.FasthttpProxyHTTPDialerTimeout(time.Second * 2),
+// Dial: fasthttpproxy.FasthttpProxyHTTPDialerTimeout(time.Second * 2),
// }
func FasthttpProxyHTTPDialerTimeout(timeout time.Duration) fasthttp.DialFunc {
proxier := httpproxy.FromEnvironment().ProxyFunc()