diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -184,6 +184,8 @@ uri"$scheme://$subdomains.example.com?x=$vx&$params#$jumpTo" | `FutureAsyncHttpClientHandler` | `scala.concurrent.Future` | - | | `ScalazAsyncHttpClientHandler` | `scalaz.concurrent.Task` | - | | `MonixAsyncHttpClientHandler` | `monix.eval.Task` | `monix.reactive.Observable[ByteBuffer]` | +| `OkHttpSyncClientHandler` | None (`Id`) | - | +| `OkHttpFutureClientHandler` | `scala.concurrent.Future` | - | ### `HttpURLConnectionSttpHandler` @@ -336,6 +338,18 @@ val response: Task[Response[Observable[ByteBuffer]]] = .send() ``` +### `OkHttpClientHandler` + +To use, add the following dependency to your project: + +```scala +"com.softwaremill.sttp" %% "okhttp-client-handler" % "0.0.3" +``` + +This handler depends on [OkHttp](http://square.github.io/okhttp/), and offers +both a **synchronous** (`OkHttpSyncClientHandler`) and **asynchronous** +(`OkHttpFutureClientHandler`), `Future`-based handlers. + ## Request type All request descriptions have type `RequestT[U, T, S]` (T as in Template). |