Oh, thanks! How about now?
... def run(): Unit = { val https: HttpsConnectionContext = httpsContext val handler: Flow[HttpRequest, HttpResponse, Any] = route Http().bindAndHandle(handler, "0.0.0.0", port, httpsContext) .onComplete { case Success(ServerBinding(address)) => logger.info(s"Listening on $address") case Failure(cause) => logger.info(s"Can't bind to localhost:$port: $cause") } logger.info(s"Running HTTPS on port $port...") } ...
Yep. Thanks for checking!
404
Date: 2020-09-08 10:29 pm (UTC)https://github.com/vpatryshev/presheaf2/blob/master/src/main/scala/com/presheaf/http/HttpsServer.scala
404 - Page not found.
~~~
Re: 404
Date: 2020-09-08 10:44 pm (UTC)Oh, thanks! How about now?
Re: 404
Date: 2020-09-09 12:32 am (UTC)Re: 404
Date: 2020-09-09 01:06 am (UTC)Yep. Thanks for checking!