Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Usage example
public MyService(Config config) {
HttpClient.Builder builder = new HttpClient.Builder();
builder
.setUserAgent(config.value(Prop.USER_AGENT, String.class))
.setRequestTimeout(config.value(Prop.REQ_TIMEOUT,Integer.class))
// etc.etc….
.setCompression(config.value(Prop.COMPRESSION_ENABLED, Boolean.class));
if(config.value(Prop.PROXY_ENABLED,Boolean.class)){
Proxy proxy = config.value(Prop.PROXY,Proxy.class);
builder.setProxy(proxy);
}
client = builder.build();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.