akka.http {
host-connection-pool {
client {
proxy {
http {
host = 127.0.0.1
post = 8888
}
}
}
}
}val responseFuture: Future[HttpResponse] =
Http().singleRequest(HttpRequest(uri = "http://akka.io"))
val response: HttpResponse = Await.result(responseFuture, Duration.Inf)
println(response.status.intValue())SBT haslibraryDependencies += "com.typesafe.akka" %% "akka-http-core" % "2.4.11"
libraryDependencies += "com.typesafe.akka" %% "akka-http-experimental" % "2.4.11"