Commits

Micha Hernandez van Leuffen  committed aef72c2

trying out json

  • Participants
  • Parent commits e115c18

Comments (0)

Files changed (1)

File src/main/scala/Web.scala

   def apply(req: HttpRequest): Future[HttpResponse] = {
     val response = Response()
     response.setStatusCode(200)
-    response.setContentString("Hello World")
+    response.setHeader("Content-Type", "application/json")
+    response.setContentString("{\"message\" :\"Hello World\"}")
     Future(response)
   }
 }