diff options
4 files changed, 6 insertions, 6 deletions
@@ -113,7 +113,7 @@ value of type `SttpHandler` needs to be in scope to invoke the `send()` on the request: ```scala -implicit val handler = HttpConnectionSttpHandler +implicit val handler = HttpURLConnectionSttpHandler val response: Response[String] = request.send() ``` @@ -130,7 +130,7 @@ type specifies the type of the body. ## URI interpolator -Using the URI interpolator it's possible to conveniently create `java.net.URI` +Using the URI interpolator it's possible to conveniently create `Uri` instances, which can then be used to specify request endpoints, for example: ```scala @@ -157,7 +157,7 @@ if `None`. * optional values in the host part will be expanded to a subdomain if `Some`, removed if `None` * sequences in the host part will be expanded to a subdomain sequence -* if a string contains the protocol is embedded *as the first element*, it will +* if a string containing the protocol is embedded *as the very beginning*, it will not be escaped, allowing to embed entire addresses as prefixes, e.g.: `uri"$endpoint/login"`, where `val endpoint = "http://example.com/api"`. diff --git a/async-http-client-handler/future/src/main/scala/com/softwaremill/sttp/asynchttpclient/future/FutureAsyncHttpClientHandler.scala b/async-http-client-handler/future/src/main/scala/com/softwaremill/sttp/asynchttpclient/future/FutureAsyncHttpClientHandler.scala index 3209e9b..e21cb89 100644 --- a/async-http-client-handler/future/src/main/scala/com/softwaremill/sttp/asynchttpclient/future/FutureAsyncHttpClientHandler.scala +++ b/async-http-client-handler/future/src/main/scala/com/softwaremill/sttp/asynchttpclient/future/FutureAsyncHttpClientHandler.scala @@ -48,7 +48,7 @@ object FutureAsyncHttpClientHandler { def usingConfig(cfg: AsyncHttpClientConfig)( implicit ec: ExecutionContext = ExecutionContext.Implicits.global) : SttpHandler[Future, Nothing] = - new FutureAsyncHttpClientHandler(new DefaultAsyncHttpClient(), + new FutureAsyncHttpClientHandler(new DefaultAsyncHttpClient(cfg), closeClient = true) /** diff --git a/async-http-client-handler/monix/src/main/scala/com/softwaremill/sttp/asynchttpclient/monix/MonixAsyncHttpClientHandler.scala b/async-http-client-handler/monix/src/main/scala/com/softwaremill/sttp/asynchttpclient/monix/MonixAsyncHttpClientHandler.scala index 2407c19..c782519 100644 --- a/async-http-client-handler/monix/src/main/scala/com/softwaremill/sttp/asynchttpclient/monix/MonixAsyncHttpClientHandler.scala +++ b/async-http-client-handler/monix/src/main/scala/com/softwaremill/sttp/asynchttpclient/monix/MonixAsyncHttpClientHandler.scala @@ -52,7 +52,7 @@ object MonixAsyncHttpClientHandler { def usingConfig(cfg: AsyncHttpClientConfig)(implicit s: Scheduler = Scheduler.Implicits.global) : SttpHandler[Task, Observable[ByteBuffer]] = - new MonixAsyncHttpClientHandler(new DefaultAsyncHttpClient(), + new MonixAsyncHttpClientHandler(new DefaultAsyncHttpClient(cfg), closeClient = true) /** diff --git a/async-http-client-handler/scalaz/src/main/scala/com/softwaremill/sttp/asynchttpclient/scalaz/ScalazAsyncHttpClientHandler.scala b/async-http-client-handler/scalaz/src/main/scala/com/softwaremill/sttp/asynchttpclient/scalaz/ScalazAsyncHttpClientHandler.scala index 01c3cdb..af5ead0 100644 --- a/async-http-client-handler/scalaz/src/main/scala/com/softwaremill/sttp/asynchttpclient/scalaz/ScalazAsyncHttpClientHandler.scala +++ b/async-http-client-handler/scalaz/src/main/scala/com/softwaremill/sttp/asynchttpclient/scalaz/ScalazAsyncHttpClientHandler.scala @@ -33,7 +33,7 @@ object ScalazAsyncHttpClientHandler { new ScalazAsyncHttpClientHandler(new DefaultAsyncHttpClient(), closeClient = true) def usingConfig(cfg: AsyncHttpClientConfig): SttpHandler[Task, Nothing] = - new ScalazAsyncHttpClientHandler(new DefaultAsyncHttpClient(), + new ScalazAsyncHttpClientHandler(new DefaultAsyncHttpClient(cfg), closeClient = true) def usingClient(client: AsyncHttpClient): SttpHandler[Task, Nothing] = new ScalazAsyncHttpClientHandler(client, closeClient = false) |