http4k is a lightweight but fully-featured HTTP toolkit written in pure Kotlin that enables the serving and consuming of HTTP services in a functional and consistent way.
http4k applications are just Kotlin functions. An http4k server is just a regular function that gets invoked with a Request and returns a Response. In a single line of code you can switch your server between Java (built-in), Apache, Jetty, Netty, Undertow, Ktor, or Ratpack. An http4k client is just a regular function that you invoke with a Request and receives a Response. In a single line of code you can switch your client implementation between Java (built-in), Apache, Jetty, and OkHttp.
This is free and open source software.
Key Features
- Tiny footprint – the core library has no dependencies and it’s all you need to create fully-functional applications. http4k APIs take advantage of Kotlin features and are powered by Functional Programming techniques.
- Highly extendable – supports many Server, Serverless and HTTP Client technologies behind simple, consistent interfaces. http4k provides 50+ pre-built integrations for developers to choose from including Observability, JSON, and OpenAPI support.
- Testability – create lightning fast, rock solid test suites for individual endpoints, applications or multi-service systems, all running fully in-memory. http4k embraces advanced testing approaches such as Approval, Chaos and Service Virtualization.
- Battle-tested – takes advantage of technologies that have millions of hours of production runtime.
Website: www.http4k.org
Support: GitHub Code Repository
Developer: David Denton, Ivan Sanchez and contributors
License: Apache License 2.0
http4k is written in Kotlin. Learn Kotlin with our recommended free books and free tutorials.
Related Software
| Kotlin Web Frameworks | |
|---|---|
| Ktor | Asynchronous framework for creating microservices, web applications and more |
| Javalin | Simple web framework for Java and Kotlin |
| http4k | Lightweight but fully-featured HTTP toolkit |
| Spark | Simple expressive web framework for Java and Kotlin |
| KVision | Object oriented web framework for Kotlin/JavaScript |
| Kobweb | Modern framework for full stack web apps |
| Hexagon | Build server applications (Web applications or APIs) that run inside a cloud platform |
| Jooby | Modern, performant and easy to use web framework for Java and Kotlin |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

