Registry / web-framework / http4s-dsl-2-13

http4s-dsl-2-13

JSON →
library0.23.33javamavenunverified

http4s DSL provides a concise, type-safe DSL for defining HTTP services and routes in Scala.

<dependency> <groupId>org.http4s</groupId> <artifactId>http4s-dsl_2.13</artifactId> <version>0.23.33</version> </dependency>
INSTALL
IMPORT
SIG · HTTP4S-DSL-2-13
H
http4s-dsl-2-13
web-frameworkjavav0.23.33
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

io
✓ org.http4s.dsl.io._

Define a simple HTTP route using http4s DSL.

import org.http4s.dsl.io._ import org.http4s.HttpRoutes import cats.effect.IO val routes = HttpRoutes.of[IO] { case GET -> Root / "hello" / name => Ok(s"Hello, $name!") }
Debug
Known issues
gotchahttp4s DSL uses cats-effect IO; requires familiarity with functional programming and effect systems.
fix
Learn cats-effect basics or use http4s with other effect types like ZIO.
affects: *
Upgrade
Version history
0.23.33latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
http4s-dsl-2-13 — mvn dependency:get http4s-dsl-2-13 · libregistry