content-type

ring.util.response

  • (content-type resp content-type)
Returns an updated Ring response with the a Content-Type header corresponding
to the given content-type.

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:67 top

(defn content-type
  "Returns an updated Ring response with the a Content-Type header corresponding
  to the given content-type."
  [resp content-type]
  (header resp "Content-Type" content-type))
Vars in ring.util.response/content-type: defn
Used in 0 other vars

Comments top

No comments for content-type. Log in to add a comment.