edit

Quickstart

This simple example demonstates how to serve and consume HTTP services using http4k.

To install, add these dependencies to your Gradle file:

dependencies {
    compile group: "org.http4k", name: "http4k-core", version: "2.35.1"
    compile group: "org.http4k", name: "http4k-server-jetty", version: "2.35.1"
    compile group: "org.http4k", name: "http4k-client-apache", version: "2.35.1"
}

The following creates a simple endpoint, binds it to a Jetty server then starts, queries, and stops it.

Single-line CD Bootstrap

Run the single command in the readme of this repo to create a HelloWorld http4k app with a full CD pipeline using Github -> TravisCI -> Heroku.

Why should I use this library?

Presentation about the development of http4k given at the Kotlin London meetup.