@@ -0,0 +1,1450 @@
+package org.http4k.example;%0A%0Aimport okhttp3.OkHttpClient;%0Aimport org.http4k.client.DualSyncAsyncHttpHandler;%0Aimport org.http4k.client.OkHttp;%0Aimport org.http4k.core.BodyMode;%0Aimport org.http4k.core.Filter;%0Aimport org.http4k.core.Request;%0Aimport org.http4k.core.Response;%0Aimport org.http4k.core.Status;%0Aimport org.http4k.routing.RoutingHttpHandler;%0Aimport org.http4k.server.Http4kServer;%0Aimport org.http4k.server.SunHttp;%0A%0Aimport static org.http4k.core.Http4kKt.then;%0Aimport static org.http4k.core.Method.POST;%0Aimport static org.http4k.routing.RoutingKt.bind;%0Aimport static org.http4k.routing.RoutingKt.routes;%0Aimport static org.http4k.server.Http4kServerKt.asServer;%0A%0Apublic class JavaExample %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Filter f = next -%3E req -%3E next.invoke(req.body(req.bodyString().substring(0, 5)));%0A%0A        RoutingHttpHandler routing = routes(bind(%22/path%22, POST).to(req -%3E Response.Companion.invoke(Status.Companion.getACCEPTED(), Request.HTTP_1_1)));%0A%0A        RoutingHttpHandler app = then(f, routing);%0A%0A        Http4kServer http4kServer = asServer(app, new SunHttp(8000));%0A%0A        http4kServer.start();%0A%0A        DualSyncAsyncHttpHandler client = OkHttp.INSTANCE.invoke(new OkHttpClient.Builder().build(), BodyMode.Memory.INSTANCE);%0A%0A        System.out.println(client.invoke(Request.Companion.invoke(POST, %22http://localhost:8000/path%22, Request.HTTP_1_1).body(%221234567890%22)));%0A%0A        http4kServer.stop();%0A    %7D%0A%7D%0A

add random java example to see how niceification works