{"id":66798,"library":"http4s-dsl-3","title":"http4s DSL","description":"Provides a simple DSL for defining HTTP services with http4s in Scala 3.","status":"active","version":"0.23.34","language":"java","source_language":null,"source_url":"https://github.com/http4s/http4s","tags":["http4s","dsl","scala","http","functional"],"install":[{"cmd":"<dependency>\n  <groupId>org.http4s</groupId>\n  <artifactId>http4s-dsl_3</artifactId>\n  <version>0.23.34</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.http4s:http4s-dsl_3:0.23.34'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"io","correct":"org.http4s.dsl.io._"}],"quickstart":{"code":"import org.http4s.dsl.io._\nimport org.http4s.implicits._\nimport cats.effect.IO\n\nval service = HttpRoutes.of[IO] {\n  case GET -> Root / \"hello\" => Ok(\"Hello, world!\")\n}.orNotFound","lang":"scala","description":"Defines a simple HTTP route using the http4s DSL."},"warnings":[{"fix":"Use the _3 artifact for Scala 3, or _2.13 for Scala 2.13.","message":"The DSL uses Scala 3 specific syntax; ensure your project is on Scala 3.","severity":"breaking","affected_versions":">=0.23.0"}],"env_vars":null,"search_vec":"'3':15 'defin':8 'dsl':2,6,17 'function':20 'http':9,19 'http4s':1,12,16 'provid':3 'scala':14,18 'servic':10 'simpl':5","created_at":"2026-06-17T17:28:49.310808+00:00","updated_at":"2026-06-17T17:28:49.310808+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://http4s.org/","github":"https://github.com/http4s/http4s","docs":"https://appdoc.app/artifact/org.http4s/http4s-dsl_3/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}