Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to use http proxy #26

Open
brezze2018 opened this issue Jun 21, 2023 · 1 comment
Open

I want to use http proxy #26

brezze2018 opened this issue Jun 21, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@brezze2018
Copy link

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
20230621144948
enshots about the feature request here.

@brezze2018 brezze2018 added the enhancement New feature or request label Jun 21, 2023
@GoodforGod
Copy link
Owner

GoodforGod commented Aug 10, 2023

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();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants