Registry / web-framework / http4k-core

http4k-core

JSON →
library3.285.2javamavenunverified

A lightweight, dependency-free HTTP server and client library for Kotlin, implementing the Server as a Function model.

<dependency> <groupId>org.http4k</groupId> <artifactId>http4k-core</artifactId> <version>3.285.2</version> </dependency>
INSTALL
IMPORT
SIG · HTTP4K-CORE
H
http4k-core
web-frameworkjavav3.285.2
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.

HttpHandler
org.http4k.core.HttpHandler

Create and start a simple HTTP server

import org.http4k.core.* import org.http4k.server.SunHttp import org.http4k.server.asServer val app: HttpHandler = { request: Request -> Response(Status.OK).body("Hello, world!") } val server = app.asServer(SunHttp(8080)).start() println("Server started on port 8080")
Debug
Known issues
gotchahttp4k-core is dependency-free but requires Kotlin stdlib; ensure compatible Kotlin version.
fix
Use the same Kotlin version as http4k was compiled with (check release notes).
affects: *
Upgrade
Version history
3.285.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
http4k-core — mvn dependency:get http4k-core · libregistry