=> Future[Rep]) val service = new Service[httpx.Request, httpx.Response] { def apply(req: httpx.Request): Future[httpx.Response] = Future.value(httpx.Response(req.version, httpx.Status.Ok)) } val server = Httpx.serve(":8080", service) Await.ready(server)