スプレー API (spray-client) を使用して外部 URL にアクセスしていますが、gzip された HttpResponse を取得しています。この HttpResponse を解凍してそのエンティティ (私の場合は json) を取得するにはどうすればよいですか?
val future: Future[HttpResponse] = (IO(Http) ? Get(uri)).mapTo[HttpResponse]
val response = Await.result(future, Duration.inf)
val json = response.entity
ここでは、json を gzip します。解凍するにはどうすればよいですか?