akka/akka-http

HttpHeader.parse can only use default settings

Open

#1,265 opened on Jul 4, 2017

View on GitHub
 (6 comments) (0 reactions) (0 assignees)Scala (598 forks)batch import
1 - triagedhelp wantedplay-akka-http-integrationt:core

Repository metrics

Stars
 (1,311 stars)
PR merge metrics
 (Avg merge 1d 10h) (2 merged PRs in 30d)

Description

Currently when using HttpHeader.parse manually there is no way to override the Settings, since they are private.

Actually Play is using it to encode response headers: https://github.com/playframework/playframework/blob/master/framework/src/play-akka-http-server/src/main/scala/play/core/server/akkahttp/AkkaModelConversion.scala#L276

It would be great if there was a public way on overriding them, even a typesafe Config object would be fine.

Contributor guide