diff options
author | adamw <adam@warski.org> | 2017-08-31 12:26:46 +0200 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-08-31 12:26:46 +0200 |
commit | 5bc89ddefab16dd814d0b716a72490451b697b32 (patch) | |
tree | 30d907effc67ce976af5cd01dd4c6ef4d1bc6242 /okhttp-handler/src | |
parent | 1fab77128b7ebd8a7f14d8e02c801b1fb6e28046 (diff) | |
download | sttp-5bc89ddefab16dd814d0b716a72490451b697b32.tar.gz sttp-5bc89ddefab16dd814d0b716a72490451b697b32.tar.bz2 sttp-5bc89ddefab16dd814d0b716a72490451b697b32.zip |
Follow-redirect support
Diffstat (limited to 'okhttp-handler/src')
-rw-r--r-- | okhttp-handler/src/main/scala/com/softwaremill/sttp/okhttp/OkHttpClientHandler.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/okhttp-handler/src/main/scala/com/softwaremill/sttp/okhttp/OkHttpClientHandler.scala b/okhttp-handler/src/main/scala/com/softwaremill/sttp/okhttp/OkHttpClientHandler.scala index 9e7669f..b95bf8a 100644 --- a/okhttp-handler/src/main/scala/com/softwaremill/sttp/okhttp/OkHttpClientHandler.scala +++ b/okhttp-handler/src/main/scala/com/softwaremill/sttp/okhttp/OkHttpClientHandler.scala @@ -130,7 +130,7 @@ abstract class OkHttpHandler[R[_], S](client: OkHttpClient) class OkHttpSyncHandler private (client: OkHttpClient) extends OkHttpHandler[Id, Nothing](client) { - override def send[T](r: Request[T, Nothing]): Response[T] = { + override protected def doSend[T](r: Request[T, Nothing]): Response[T] = { val request = convertRequest(r) val response = client.newCall(request).execute() readResponse(response, r.response) @@ -148,7 +148,7 @@ object OkHttpSyncHandler { abstract class OkHttpAsyncHandler[R[_], S](client: OkHttpClient, rm: MonadAsyncError[R]) extends OkHttpHandler[R, S](client) { - override def send[T](r: Request[T, S]): R[Response[T]] = { + override protected def doSend[T](r: Request[T, S]): R[Response[T]] = { val request = convertRequest(r) rm.flatten(rm.async[R[Response[T]]] { cb => |