jclouds/drivers/okhttp
Andrew Gaul dc3011469b Prefer Charsets.UTF_8 over string literal
Found with modernizer-maven-plugin.
2014-09-20 18:31:24 -07:00
..
src Prefer Charsets.UTF_8 over string literal 2014-09-20 18:31:24 -07:00
README.md Added OkHttp driver to support modern HTTP verbs 2014-01-13 10:47:39 +01:00
pom.xml Up to 2.0.0-SNAPSHOT after the 1.8.0 release 2014-08-05 09:10:24 +02:00

README.md

jclouds OkHttp driver

A driver to use the OkHttp (http://square.github.io/okhttp/) client as an HTTP library in jclouds.

This driver adds support for use of modern HTTP verbs such as PATCH in providers and APIs, and also supports SPDY.

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