Akka-http: Should response/request.header[T] be ModeledCustomHeader aware?

Created on 8 May 2017  路  1Comment  路  Source: akka/akka-http

This requires a bunch of hacks though, as the impl that makes it work in akka-http is the HeaderMagnet infra which we do not have immediately available in akka-http-core, and I'm not sure if we want to have it there.

https://github.com/akka/akka-http/blob/master/akka-http/src/main/scala/akka/http/javadsl/server/directives/HeaderDirectives.scala#L84

We can make it work using some smarts however making it possible for Java should likely use the partial function style as we suggest anyway for the routing DSL for it.

1 - triaged core

Most helpful comment

At least the documentation should mention that it won't work this way.

>All comments

At least the documentation should mention that it won't work this way.

Was this page helpful?
0 / 5 - 0 ratings