GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ollieabbey/http4k: The Functional toolkit for Kotlin HTTP applications. http4k provides a simple and uniform way to serve, consume, and test HTTP services.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

9,877 Commits
9,877 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
ai
ai
 
 
bin
bin
 
 
bom
bom
 
 
compliance
compliance
 
 
config/detekt
config/detekt
 
 
connect
connect
 
 
core
core
 
 
gradle
gradle
 
 
pro
pro
 
 
src/typeflows/kotlin
src/typeflows/kotlin
 
 
tools
tools
 
 
.buildnote.json
.buildnote.json
 
 
.codebeatignore
.codebeatignore
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.java-version
.java-version
 
 
.justfile
.justfile
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
SUPPORT.md
SUPPORT.md
 
 
build.gradle.kts
build.gradle.kts
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle.kts
settings.gradle.kts
 
 
version.json
version.json
 
 

Repository files navigation


http4k logo


build download GitHub license intellij-badge awesome kotlin Kotlin Slack back us! sponsor us!

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. For example, here's a simple echo server:

val app: HttpHandler = { request: Request -> Response(OK).body(request.body) }
val server = app.asServer(SunHttp(8000)).start()

You can read about the rationale and ethos of http4k here

The http4k platform consists of the following main ecosystems, all released under a single version:

  • http4k-core consists of a lightweight core library providing a base HTTP implementation and Server/Client implementations based on the JDK classes. Further servers, clients, serverless, templating, websockets capabilities are then implemented in add-on modules. http4k apps can be simply mounted into a running Server, Serverless platform, or compiled to GraalVM and run as a super-lightweight binary.
  • http4k-connect is a lightweight API Client toolkit which includes libraries for connecting to popular third-party cloud services and AI backends using http4k compatible APIs, along with Fake implementations for usage during local testing.
  • http4k-ai provides universal LLM adapters for OpenAI, Anthropic, Gemini, Azure, and GitHub Models, along with LangChain4J integration and an agent framework - all testable in-memory with Fake implementations.
  • http4k-pro is a set of premium, commercially licensed modules that solve recurring enterprise problems - including Wiretap (OpenTelemetry capture and developer console), X402/MPP (machine-to-machine payment protocols), Verify (build-time supply-chain verification), Hot Reload, and pro-tier MCP and A2A integrations. Distributed under the org.http4k.pro Maven group.
  • http4k Enterprise delivers long-term stability (up to 24-month LTS), supply-chain security (SLSA provenance, signed SBOMs, cosign signatures), priority support, license reporting, and source access - everything organisations need to run http4k in regulated, mission-critical environments.

Sounds cool! Where can I find out more?

You can find out all about the project on the http4k site.

Installation

dependencies {
    // install the platform...
    implementation(platform("org.http4k:http4k-bom:<LATEST_VERSION>"))

    // ...then choose any moduless but at least the core
    implementation("org.http4k:http4k-core")
}

Acknowledgments

  • Dan Bodart's utterlyidle
  • Ivan Moore for pairing on the original hackday project - Barely Magical.
  • You can see the amazing people and companies who have helped us to make http4k here.

scarf

About

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

http4k.org

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.