akka/akka-http

Timeout-Access header always contains incorrect value "<function1>"

オープン

#64 opened on 2016/09/08

 (9 件のコメント) (0 件のリアクション) (0 人の担当者)Scala (598 件のフォーク)batch import
1 - triagedhelp wantednice-to-have (low-prio)

Repository metrics

Stars
 (1,311 個のスター)
PR merge metrics
 (平均マージ 1d 10h) (30d で 2 merged PRs)

説明

Issue by nartamonov Tuesday Mar 22, 2016 at 16:00 GMT Originally opened as https://github.com/akka/akka/issues/20120


Following path returns response "Timeout-Access = ":

  path("test") {
    get {
      optionalHeaderValueByName("Timeout-Access") { timeout =>
        complete(s"Timeout-Access = ${timeout.get}")
      }
    }
  }

It's because TimeoutAccessImpl does not override toString which inherited by default from scala.Function1.

コントリビューターガイド