I want to use http proxy
brezze2018 opened this issue · 1 comments
Is your feature request related to a problem? Please describe.
I want to use http proxy
Describe the solution you'd like
I want to add a proxy parameter to io.goodforgod.api.etherscan.http.impl.UrlEthHttpClient to set the http proxy.
Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("127.0.0.1", 1080));
UrlEthHttpClient .proxy = proxy;
Describe alternatives you've considered
make a copy https://github.com/GoodforGod/java-etherscan-api/blob/master/src/main/java/io/goodforgod/api/etherscan/http/impl/UrlEthHttpClient.java
Additional context
Add any other context or scre

enshots about the feature request here.
Library allow to use your custom HttpClient implementation cause EthHttpClient is an interface, you can easily provide your custom impl to Etherscan.builder and this will do the trick
Supplier<EthHttpClient> ethHttpClientSupplier = // your client implementation
EtherScanAPI api = EtherScanAPI.builder()
.withHttpClient(supplier)
.build();