We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
The ring.util.response namespace contains functions for creating Ring response maps (see Concepts).
ring.util.response
The response function creates a basic "200 OK" response:
response
(response "Hello World") => {:status 200 :headers {} :body "Hello World"}
One can then use functions like content-type to alter the base response to add in additional headers and other components:
content-type
(-> (response "Hello World") (content-type "text/plain")) => {:status 200 :headers {"Content-Type" "text/plain"} :body "Hello World"}