0.2.3 permalink Arrow_down_16x16
  • (header resp name value)
Returns an updated Ring response with the specified header added.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source ring/util/response.clj:62 top

(defn header
  "Returns an updated Ring response with the specified header added."
  [resp name value]
  (assoc-in resp [:headers name] (str value)))
Vars in ring.util.response/header: assoc-in defn str
Used in 0 other vars

Comments top

No comments for header. Log in to add a comment.