aboutsummaryrefslogtreecommitdiff
path: root/docs/backends/okhttp.rst
blob: f421be9e621b174eed9df2d1ec77a8976bbc8e6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
OkHttp backend
==============

To use, add the following dependency to your project::

  "com.softwaremill.sttp" %% "okhttp-backend" % "0.0.21"
  // or, for the monix version:
  "com.softwaremill.sttp" %% "okhttp-backend-monix" % "0.0.21"

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.