Hi there,
You're the one creating the HttpResponse directly if you want to modify it, see:
import akka.http.javadsl.model.*;
return ctx.complete(
HttpResponse.create()
.withEntity(HttpEntities.create("example"))
.addHeader(Location.create("http://akka.io;)));
Happy hakking!
--
hi,
i go through the akka-http java documentation
here
http://doc.akka.io/docs/akka-stream-and-http-experimental/2.0.1/java/http/routing-dsl/handlers.html#Handlers_in_Java_8
and there is something i need your help with.
let's say i have the following simplest handler:
Handler handler = new