Dispatch reboot is a rewrite of the Dispatch library for HTTP interaction in Scala, using async-http-client, commonly called AHC, as its underlying transport. For more info, see the Dispatch documentation site.
Dispatch requires that you use Java 8 as AHC requires it.
Stable releases of Dispatch are published to Maven Central. As such, you can pull in the current stable release by simply adding a library dependency to your project for the correct version.
In SBT you can add the following one-liner to get Dispatch 0.13.1, the latest release, into your project:
libraryDependencies += "net.databinder.dispatch" %% "dispatch-core" % "0.13.1"
We're also currently publishing snapshot releases for 0.14.x-SNAPSHOT to Sonatype snapshots. If you'd like to test your code with AHC 2.1 before it's final, taking one of these snapshots out for a spin is the way to do it.
The following instructions will get you your snapshot:
resolvers +=
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
libraryDependencies += "org.dispatchhttp" %% "dispatch-core" % "0.14.0-SNAPSHOT"
Dispatch version numbers loosely follow SemVer. The version number format is:
[major].[minor].[patch]
A distinct (major, minor) combination is called a "release series" or "series" for our purposes.
Two stable series of Dispatch are supported at a time, with one series prior to that receiving "Critical" security updates in Dispatch itself or critical security fixes in AHC that have broken binary compatibility. All earlier versions of Dispatch are officially unsupported and will not receive any fixes or changes.
The following chart outlines what versions of Dispatch support what versions of AHC and Scala and their current support status:
Version | AHC Version | Scala Versions | Support | Branch |
---|---|---|---|---|
0.10.0 | 1.7.11 | 2.9.3,2.10 | None | |
0.11.2 | 1.8.10 | 2.9.3,2.10,2.11 | None | |
0.11.4 | 1.9.40 | 2.10,2.11 | Critical only | |
0.12.3 | 1.9.40 | 2.11,2.12 | Full support | 0.12.x |
0.13.1 | 2.0.33 | 2.11,2.12 | Full support | 0.13.x |
0.14.0-SNAPSHOT | 2.0.33 | 2.11,2.12 | Development | master |
0.14.0-SNAPSHOT | 2.1.x-alpha | 2.11,2.12 | Development | master_with_ahc2.1 |
Please see our Contributing Guide for information on how to contribute and get help with Dispatch.