diff options
Diffstat (limited to 'docs/backends/okhttp.rst')
-rw-r--r-- | docs/backends/okhttp.rst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/backends/okhttp.rst b/docs/backends/okhttp.rst new file mode 100644 index 0000000..52fbc49 --- /dev/null +++ b/docs/backends/okhttp.rst @@ -0,0 +1,17 @@ +``OkHttpClientBackend`` +======================= + +To use, add the following dependency to your project:: + + "com.softwaremill.sttp" %% "okhttp-backend" % "0.0.20" + // or, for the monix version: + "com.softwaremill.sttp" %% "okhttp-backend-monix" % "0.0.20" + +This backend depends on `OkHttp <http://square.github.io/okhttp/>`_, and offers: + +* a **synchronous** backend: ``OkHttpSyncBackend`` +* an **asynchronous**, ``Future``-based backend: ``OkHttpFutureBackend`` +* an **asynchronous**, Monix-``Task``-based backend: ``OkHttpMonixBackend`` + +OkHttp fully supports HTTP/2. + |