Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

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

License

NotificationsYou must be signed in to change notification settings

http4k/http4k


http4k logo


builddownloadGitHub licensecodebeatintellij-badgeawesome kotlinKotlin Slackback us!sponsor us!

http4k is a lightweight but fully-featured HTTP toolkit written in pureKotlin that enables the serving and consuming of HTTPservices in a functional and consistent way.http4k applications arejust 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 http4khere

Thehttp4k 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 cloudservices and AI backends usinghttp4k compatible APIs, along with Fake implementations for usage during localtesting.

Sounds cool! Where can I find out more?

You can find out all about the project on thehttp4k 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'sutterlyidle
  • 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 http4khere.

About

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

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

 

[8]ページ先頭

©2009-2025 Movatter.jp