diff options
author | Steven Roose <stevenroose@gmail.com> | 2018-01-24 16:59:15 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-01-24 16:59:15 +0800 |
commit | 952482d5e47c390afbd04230c43b1df8c53d84ef (patch) | |
tree | e2bbc61d4eea3bfad94b80392c16af61ceee6961 /cmd/utils/flags.go | |
parent | 5c83a4e5dd600fcf19502f7fb083dc0b6393f969 (diff) | |
download | dexon-952482d5e47c390afbd04230c43b1df8c53d84ef.tar dexon-952482d5e47c390afbd04230c43b1df8c53d84ef.tar.gz dexon-952482d5e47c390afbd04230c43b1df8c53d84ef.tar.bz2 dexon-952482d5e47c390afbd04230c43b1df8c53d84ef.tar.lz dexon-952482d5e47c390afbd04230c43b1df8c53d84ef.tar.xz dexon-952482d5e47c390afbd04230c43b1df8c53d84ef.tar.zst dexon-952482d5e47c390afbd04230c43b1df8c53d84ef.zip |
rpc: Support specifying HTTP client in RPC dialing (#15836)
* rpc: Support specifying HTTP client in RPC dialing
Adds a minimal interface that captures http.Client and adds a new method
rpc.DialHTTPClient that takes a client using that interface. The existing
rpc.DialHTTP method is then alternatively implemented by using the new
rpc.DialHTTPClient method provided with a standard *http.Client.
* rpc: fix minor doc typos
Diffstat (limited to 'cmd/utils/flags.go')
0 files changed, 0 insertions, 0 deletions