Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
@http4k

http4k

The Functional toolkit for Kotlin HTTP applications

http4k — Server as a Function

The functional toolkit for Kotlin

Server as a Function. We meant it literally — no annotations, no reflection, no container, no magic. Just immutable Kotlin functions you can read, test in-memory, and trust in production.

Website · Quickstart · Docs · News


One platform. Four ecosystems. 200+ modules.

Everything ships under a single BOM version, so it just works together — pull in only what you need.

🧩 Core Servers, clients, routing, typesafe lenses, formats & a full testing toolkit. Zero dependencies.
🤖 AI LLM adapters, MCP and A2A — with Fakes so you can test AI integrations offline.
🔌 Connect Typed clients for cloud & SaaS APIs, each with a stateful in-memory Fake.
🛡️ Pro & Enterprise Premium modules, LTS, priority support and verifiable supply-chain security.

Why teams pick http4k

  • Testable — call your whole app in-memory, no server, no ports.
  • Portable — swap Netty → Lambda → GraalVM with one line.
  • Transparent — what you read is exactly what runs. Zero reflection.
  • Proven — 5M+ downloads/month, in production since 2017.

Get started

val app: HttpHandler = { req -> Response(OK).body("hello ${req.query("name")}") }
app.asServer(SunHttp(9000)).start()

Security

We do our security homework in public — see our advisories and coordinated disclosure policy.


Apache 2.0 core · Built & maintained by http4k Ltd

Peace out. // the http4k team

Pinned Loading

  1. http4k http4k Public

    The Functional toolkit for Kotlin HTTP applications. http4k provides a simple and uniform way to serve, consume, and test HTTP services.

    Kotlin 2.8k 279

  2. http4k-by-example http4k-by-example Public

    Complete TDD'd example http4k application showcasing a lot of the http4k features for building apps

    Kotlin 70 10

  3. examples examples Public

    Fully self-contained examples of using the various http4k features

    Kotlin 91 11

  4. www www Public

    Content of the http4k.org website

    Kotlin 2 10

Repositories

Loading
Type
Select type
Language
Select language
Sort
Select order
Showing 10 of 52 repositories

Top languages

Loading…

Most used topics

Loading…

Morty Proxy This is a proxified and sanitized view of the page, visit original site.