Compatible with akka-http 1.0.2 and akka 2.1.1