akka/akka-http

Injected 503 response is not available to inner/outer routes.

Aperta

#1085 aperta il 3 mag 2017

 (3 commenti) (0 reazioni) (0 assegnatari)Scala (598 fork)batch import
1 - triagedhelp wantedt:docst:routingt:server

Metriche repository

Star
 (1311 stelle)
Metriche merge PR
 (Merge medio 1g 10h) (2 PR mergiate in 30 g)

Descrizione

Given route definition as follows:

    addTraceHeaderIfMissing {
      logHttpRequest {
        logHttpResponse {
          withRequestTimeoutResponse(handleTimeoutResponse) {
            logHttpResponse {
              Route.seal(routes)
            }
          }
        }
      }
    }

Where logHttpResponse is implemented with mapResponse directive, both logHttpResponse calls log 200 OK response if service timeout is reached.

Any clues? Am I missing something? Many thanks!

Guida contributor