So I have a function with this signature (akka.http.model.HttpResponse):
def apply(query: Seq[(String, String)], accept: String): HttpResponse
import akka.http.scaladsl.unmarshalling.Unmarshal implicit val system = ActorSystem("System") implicit val materializer = ActorFlowMaterializer() val responseAsString: Future[String] = Unmarshal(entity).to[String]