akka-http: complete request with flow
Assume I have set up an arbitrarily complex Flow[HttpRequest, HttpResponse, Unit] . I can already use said flow to handle incoming requests with Http().bindAndHandle(flow, "0.0.0.0", 8080) Now I would like to add logging, leveraging some existing directive, like logRequestResult("my-service"){...} Is there a way to combine this directive with my flow? I guess I am looking for another directive, something along the lines of def completeWithFlow(flow: Flow): Route Is this possible at all? N.B.: logRequestResult is an example, my question applies to any Directive one might find useful. Turns out