mirror of https://github.com/apache/jclouds.git
f3c3f3b306
Jclouds sends default user agent string with each request to cloud services. But some of the application would like to overide this and send custom user agent instead. This commit define a string property to overide this default user agent string. This property will be applied to all outgoing http request to cloud services JCLOUDS-819 |
||
---|---|---|
.. | ||
src | ||
README.md | ||
pom.xml |
README.md
jclouds OkHttp driver
A driver to use the OkHttp (http://square.github.io/okhttp/) client as an HTTP library in jclouds.
To use the driver, you just need to include the OkHttpCommandExecutorServiceModule
when creating
the context:
ContextBuilder.newBuilder("provider")
.endpoint("endpoint")
.credentials("identity", "credential")
.modules(ImmutableSet.of(new OkHttpCommandExecutorServiceModule()))
.build();