May 2017
Intermediate to advanced
414 pages
13h
English
For this recipe, perform the following steps:
libraryDependencies += "com.typesafe.akka" % "akka-http_2.11" % "10.0.5"
package com.packt.chapter9 import akka.http.scaladsl.model.{ContentTypes, HttpEntity} import akka.http.scaladsl.server.HttpApp import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.settings.ServerSettings import com.typesafe.config.ConfigFactory object MinimalHttpServer extends HttpApp { def route = pathPrefix("v1") { path("id" / Segment) { id => get { complete(HttpEntity(ContentTypes.`text/html(UTF-8)` ...
Read now
Unlock full access