Finding Joy: Middleware
In this series of posts, we are working our way up to understanding the Joy web framework by creating the building blocks ourselves. See part 1 and part 2. Let’s start simple again: (import halo) (defn hello [request] {:status 200 :body "Hello, world!"}) (halo/server hello 8080) The thing I want to point out here is the call to halo/server. It seems kinda crazy that we could build a powerful, modern web app by passing one handler function to the server.