0
私が述べhttp://doc.akka.io/docs/akka-stream-and-http-experimental/1.0-M2/scala/http/directives/coding-directives/decodeRequest.html[アッカ、スカラ座]
1 def routesWithCompression = {
2 time() {
3 count() {
4 decodeRequest(Gzip) {
5 entity(as[String]) { content: String =>
6 complete(s"Request content: '$content'")
7 }
8 }
9 }
10 }
11 }
私は8行目でエラーをコンパイルし得る。この例で遊んしようとしています
式server.routeの式がrequestcontextに準拠していません
正直なところ、入力としてRequestContextが必要なものと変換方法がわかりませんt server.routeを実行してRequestContextと入力します。
ありがとうございました
ドキュメントへのリンクは古いですが、現在のAPIを使用しており、decodeRequest()とencodeResponse()があります。私はそこに欠陥があるとは思わない。ありがとう – BigDataScholar