我正在Clojure和Compojure写一个小网站.我想根据找到或未找到的数据为每个请求设置HTTP响应状态.
最后一个调用是html5宏,它将需要发送回浏览器的html返回给处理程序.是否可以在某种程度上设置HTTP响应状态?
(ns myapp.views.layout
(:require
[hiccup.page :refer (html5 include-css include-js)]))
(defn layout [title & content]
(html5
(head title)
(body content)))
Run Code Online (Sandbox Code Playgroud)