Open
Description
Hello
I'd like to run a custom http4s server, say from http4s doc page
object Main extends IOApp {
val helloWorldService = HttpRoutes.of[IO] {
case GET -> Root / "hello" / name =>
Ok(s"Hello, $name.")
}.orNotFound
def run(args: List[String]): IO[ExitCode] =
BlazeServerBuilder[IO](global)
.bindHttp(8080, "localhost")
.withHttpApp(helloWorldService)
.serve
.compile
.drain
.as(ExitCode.Success)
}
How can I do that with Mu API ?
Thanks !
Metadata
Metadata
Assignees
Labels
No labels
Activity