I have been unable to determine what the below code represents, as these syntax are not entirely listed in Scala documentation. Can someone shed some light on each of the below line? If the above title needs to be changed to something that can benefit others, please let me know.
val route = path("hello") { get { complete(HttpEntity(ContentTypes.`text/html(UTF-8)`, "<h1>Say hello to akka-http</h1>")) } } Ref: http://doc.akka.io/docs/akka-http/current/scala/http/introduction.html#http-client-api