Provides http4s entity codec instances for scala-xml.
This is probably the artifact you want. It works with scala-xml-2.x.
libraryDependencies ++= Seq(
"org.http4s" %% "http4s-scala-xml" % http4sScalaXmlV
)
Note
This module is available only in the 0.23 series.
This repository also published an alternate http4s-scala-xml-1
artifact. The Scala package is the same, so this dependency must
never be bundled with http4s-scala-xml
. It exists because several
significant libraries, like Twirl, are still based on scala-xml-1.x
in Scala 2. Use this library to avoid diamond dependencies, but
upgrade when you can.
libraryDependencies ++= Seq(
"org.http4s" %% "http4s-scala-xml-1" % http4sScalaXmlV
)
artifact | version | http4s-core | scala-xml | Scala 2.12 | Scala 2.13 | Scala 3 | Status |
---|---|---|---|---|---|---|---|
http4s-scala-xml | 0.24.x | 0.23.x | 2.4.x | ✅ | ✅ | ✅ | Stable |
http4s-scala-xml | 0.23.x | 0.23.x | 2.3.x | ✅ | ✅ | ✅ | EOL |
http4s-scala-xml-1 | 0.23.x | 0.23.x | 1.x | ✅ | ✅ | ❌ | EOL |