akka/akka-http

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

Open

#1,085 opened on May 3, 2017

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Scala (1,311 stars) (598 forks)batch import
1 - triagedhelp wantedt:docst:routingt:server

Description

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!

Contributor guide