{"id":56885,"library":"http4k-core","title":"http4k Core","description":"A lightweight, dependency-free HTTP server and client library for Kotlin, implementing the Server as a Function model.","status":"active","version":"3.285.2","language":"java","source_language":null,"source_url":"https://github.com/http4k/http4k","tags":["http","server","kotlin","functional","http4k"],"install":[{"cmd":"<dependency>\n  <groupId>org.http4k</groupId>\n  <artifactId>http4k-core</artifactId>\n  <version>3.285.2</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.http4k:http4k-core:3.285.2'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"HttpHandler","correct":"org.http4k.core.HttpHandler"}],"quickstart":{"code":"import org.http4k.core.*\nimport org.http4k.server.SunHttp\nimport org.http4k.server.asServer\n\nval app: HttpHandler = { request: Request -> Response(Status.OK).body(\"Hello, world!\") }\nval server = app.asServer(SunHttp(8080)).start()\nprintln(\"Server started on port 8080\")","lang":"kotlin","description":"Create and start a simple HTTP server"},"warnings":[{"fix":"Use the same Kotlin version as http4k was compiled with (check release notes).","message":"http4k-core is dependency-free but requires Kotlin stdlib; ensure compatible Kotlin version.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'client':11 'core':2 'depend':6 'dependency-fre':5 'free':7 'function':20,25 'http':8,22 'http4k':1,26 'implement':15 'kotlin':14,24 'librari':12 'lightweight':4 'model':21 'server':9,17,23","created_at":"2026-06-15T10:54:18.775220+00:00","updated_at":"2026-06-15T10:54:18.775220+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://http4k.org","github":"https://github.com/http4k/http4k","docs":"https://appdoc.app/artifact/org.http4k/http4k-core/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework","http-client"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}