diff options
author | Oleksandr Redko <Oleksandr_Redko@epam.com> | 2023-08-30 14:07:23 +0300 |
---|---|---|
committer | Kirill Danshin <kirill@danshin.pro> | 2023-08-30 14:13:49 +0200 |
commit | 8236f8d49aab9dd2068cd44d480611e9813b9023 (patch) | |
tree | c761475ca2a81fee0b80b05ba5808985b88f5f55 | |
parent | docs: fix typos in comments and tests (diff) | |
download | fasthttp-8236f8d49aab9dd2068cd44d480611e9813b9023.tar.gz fasthttp-8236f8d49aab9dd2068cd44d480611e9813b9023.tar.bz2 fasthttp-8236f8d49aab9dd2068cd44d480611e9813b9023.zip |
fasthttpproxy: fix doc examples
-rw-r--r-- | fasthttpproxy/proxy_env.go | 4 |
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() |