Skip to content

Commit

Permalink
#572 Akka HTTP 10.1.0 & Akka 2.5.11 (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
anilgursel authored and akara committed Mar 12, 2018
1 parent 2f6b5a0 commit 0a33510
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions project/Versions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*/

object Versions {
val akkaV = "2.5.9"
val akkaHttpV = "10.1.0-RC2"
val akkaV = "2.5.11"
val akkaHttpV = "10.1.0"
val scalatestV = "3.0.5"
val scalaLoggingV = "3.7.2"
val jacksonV = "2.9.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,6 @@ object JavaConverters {
js.Flow[Pair[jm.HttpRequest, T], Pair[Try[jm.HttpResponse], T], jd.HostConnectionPool] = {
adaptTupleFlow[T](flow)
}

def toScala(uri: akka.http.javadsl.model.Uri) = JavaMapping.toScala(uri)
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
*/
package org.squbs.httpclient
import java.util.Optional
import javax.net.ssl.SSLContext

import akka.http.impl.model.JavaUri
import akka.http.javadsl
import akka.http.org.squbs.util.JavaConverters
import akka.http.scaladsl.model.Uri
import com.typesafe.config.Config
import javax.net.ssl.SSLContext

import scala.compat.java8.OptionConverters._

Expand Down Expand Up @@ -54,10 +54,6 @@ object HttpEndpoint {
/**
* Java API
*/
def create(uri: javadsl.model.Uri, sslContext: Optional[SSLContext], config: Optional[Config]): HttpEndpoint = {
uri match {
case JavaUri(sUri) => HttpEndpoint(sUri, sslContext.asScala, config.asScala)
case _ => throw new IllegalArgumentException("Illegitimately created uri.")
}
}
def create(uri: javadsl.model.Uri, sslContext: Optional[SSLContext], config: Optional[Config]): HttpEndpoint =
HttpEndpoint(JavaConverters.toScala(uri), sslContext.asScala, config.asScala)
}
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ object MaterializerSpec {
|io.tcp {
| write-buffer-size = 16 KiB
|}
|stream-ref {
| buffer-capacity = 32
| demand-redelivery-interval = 1 second
| subscription-timeout = 30 seconds
|}
|blocking-io-dispatcher = "akka.stream.default-blocking-io-dispatcher"
""".stripMargin)

val boot = UnicomplexBoot(config)
Expand Down

0 comments on commit 0a33510

Please sign in to comment.