Liking cljdoc? Tell your friends :D

io.pedestal.http.response

Utilities used to write Ring responses.

Utilities used to write Ring responses.
raw docstring

disable-responseclj

(disable-response context)

Updates the context to identify that no response is expected; this typically is because the request was upgraded to a WebSocket connection.

Updates the context to identify that no response is expected; this typically is because
the request was upgraded to a WebSocket connection.
sourceraw docstring

edn-responsecljdeprecated

(edn-response obj)

Return a Ring response that will print the given obj to the HTTP output stream in EDN format.

Return a Ring response that will print the given `obj` to the HTTP output stream in EDN format.
sourceraw docstring

json-responseclj

(json-response obj)

Return a Ring response that will print the given obj to the HTTP output stream in JSON format.

Return a Ring response that will print the given `obj` to the HTTP output stream in JSON format.
sourceraw docstring

respond-withclj

(respond-with context status)
(respond-with context status body)
(respond-with context status headers body)

Utility function to add a :response map to the interceptor context.

Utility function to add a :response map to the interceptor context.
sourceraw docstring

response-expected?clj

(response-expected? context)

Returns true unless disable-response was previously invoked.

Returns true unless [[disable-response]] was previously invoked.
sourceraw docstring

response?clj

(response? resp)

A valid response is any map that includes an integer :status value.

A valid response is any map that includes an integer :status
value.
sourceraw docstring

stream-jsonclj

(stream-json obj)
source

stream-transitclj

(stream-transit obj transit-format transit-opts)
source

terminate-when-responseclj

(terminate-when-response context)

Adds an interceptor chain terminator to terminate execution when a valid :response map is added to the context.

Adds an interceptor chain terminator to terminate execution when a valid :response map
is added to the context.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close