dropwizard/dropwizard — pull request #612 by bnese (2014-06-09 21:19:08+00:00)
Title: Added support for setting CredentialProvider when building HttpClient.

This will allow us to provide credentials, e.g:
``` java
@Override
public void run(Configuration configuration, Environment environment) throws Exception {
BasicCredentialsProvider credentialsProvider = new BasicCredentialsProvider();
credentialsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials("username", "password"));
HttpClient httpClient = new HttpClientBuilder(environment).using(configuration.getHttpClientConfiguration()).using(credentialsProvider).build("httpClient");
environment.jersey().register(new MyResource(httpClient));
}
```