Skip to content

Commit

Permalink
Merge pull request #240 from maiflai/ahc3
Browse files Browse the repository at this point in the history
Ahc3
  • Loading branch information
farmdawgnation authored Aug 17, 2024
2 parents 658a1ba + 6635601 commit 4e69a1b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 222 deletions.
2 changes: 1 addition & 1 deletion core/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description :=
"Core Dispatch module wrapping async-http-client"

libraryDependencies +=
"org.asynchttpclient" % "async-http-client" % "2.10.4"
"org.asynchttpclient" % "async-http-client" % "3.0.0"

enablePlugins(BuildInfoPlugin)

Expand Down
26 changes: 0 additions & 26 deletions core/src/main/scala/as/oauth/token.scala

This file was deleted.

8 changes: 6 additions & 2 deletions core/src/main/scala/defaults.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import io.netty.util.{HashedWheelTimer, Timer}
import org.asynchttpclient.DefaultAsyncHttpClientConfig.Builder
import org.asynchttpclient._

import java.time.Duration

object Defaults {
implicit def executor = scala.concurrent.ExecutionContext.Implicits.global

Expand All @@ -26,9 +28,11 @@ private[dispatch] object InternalDefaults {
private object BasicDefaults extends Defaults {
lazy val timer = new HashedWheelTimer()

private val userAgent = "Dispatch/%s" format BuildInfo.version
private val infinite = Duration.ofMillis(-1)
def builder: Builder = new DefaultAsyncHttpClientConfig.Builder()
.setUserAgent("Dispatch/%s" format BuildInfo.version)
.setRequestTimeout(-1) // don't timeout streaming connections
.setUserAgent(userAgent)
.setRequestTimeout(infinite) // don't timeout streaming connections
.setUseProxyProperties(true)
}

Expand Down
97 changes: 0 additions & 97 deletions core/src/main/scala/oauth/exchange.scala

This file was deleted.

6 changes: 0 additions & 6 deletions core/src/main/scala/oauth/package.scala

This file was deleted.

20 changes: 0 additions & 20 deletions core/src/main/scala/oauth/requests.scala

This file was deleted.

70 changes: 0 additions & 70 deletions core/src/test/scala/oauth/exchange.scala

This file was deleted.

0 comments on commit 4e69a1b

Please sign in to comment.