Liking cljdoc? Tell your friends :D

puppetlabs.ring-middleware.utils


bad-request?clj

(bad-request? e)

data-invalid?clj

(data-invalid? e)

json-responseclj

(json-response status body)

Inputs: [status :- schema/Int body :- schema/Any] Returns: RingResponse

Inputs: [status :- schema/Int body :- schema/Any]
Returns: RingResponse
raw docstring

plain-responseclj

(plain-response status body)

Inputs: [status :- schema/Int body :- schema/Str] Returns: RingResponse

Inputs: [status :- schema/Int body :- schema/Str]
Returns: RingResponse
raw docstring

ResponseTypeclj


RingRequestclj


RingResponseclj


schema-error?clj

(schema-error? e)

service-unavailable?clj

(service-unavailable? e)

throw-bad-request!clj

(throw-bad-request! message)

Throw a :bad-request type slingshot error with the supplied message

Throw a :bad-request type slingshot error with the supplied message
raw docstring

throw-data-invalid!clj

(throw-data-invalid! message)

Throw a :data-invalid type slingshot error with the supplied message

Throw a :data-invalid type slingshot error with the supplied message
raw docstring

throw-service-unavailable!clj

(throw-service-unavailable! message)

Throw a :service-unavailable type slingshot error with the supplied message

Throw a :service-unavailable type slingshot error with the supplied message
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close