aboutsummaryrefslogblamecommitdiff
path: root/docs/backends/okhttp.rst
blob: a9a5d4c5d08bb47288cb89f262edceeadef094a6 (plain) (tree)
1
2
3
4
5
6
7
8

              


                                                      
                                                        
                               
                                                              








                                                                                 
OkHttp backend
==============

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

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

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.