My server is built on top of Akka HTTP. If I don't set the Server
header, the externally configurable default of akka-http/10.1.8
will be automatically added by Akka. I know how to override that with my own server by adding the respondWithHeaders
directive around my entire routs tree:
respondWithHeaders(Server(myProductVersion)) {
// my routs here
}
This works as expected; the Server response header now reads my product. What I want though is to include akka's header as well, as I like it and don't mind telling the world about my server stack. Given the signature of the Server.apply
method, I should be able to do that like so:
respondWithHeaders(Server(myProductVersion, akkaProductVersion)) {
// my routs here
}
... my problem is that I can't figure out how to get at that akkaProductVersion
object!