May 2017
Intermediate to advanced
414 pages
13h
English
For this recipe, perform the following steps:
package com.packt.chapter9 import akka.http.scaladsl.coding._ import akka.http.scaladsl.model.StatusCodes import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.server.HttpApp import akka.http.scaladsl.settings.ServerSettings import com.typesafe.config.ConfigFactory object EncodingDecodingServer extends HttpApp { val route = post { decodeRequestWith(Gzip, NoCoding) { entity(as[String]) { stringEntity => encodeResponse { complete { println(s"Received ...
Read now
Unlock full access