github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/grpc/Documentation/proxy.md (about) 1 # Proxy 2 3 HTTP CONNECT proxies are supported by default in gRPC. The proxy address can be 4 specified by the environment variables HTTP_PROXY, HTTPS_PROXY and NO_PROXY (or 5 the lowercase versions thereof). 6 7 ## Custom proxy 8 9 Currently, proxy support is implemented in the default dialer. It does one more 10 handshake (a CONNECT handshake in the case of HTTP CONNECT proxy) on the 11 connection before giving it to gRPC. 12 13 If the default proxy doesn't work for you, replace the default dialer with your 14 custom proxy dialer. This can be done using 15 [`WithDialer`](https://godoc.org/google.golang.org/grpc#WithDialer).