(get-xml-body request)
Get the XML body from a request.
Get the XML body from a request.
(wrap-xml-request handler)
(wrap-xml-request handler options)
Intercepts incoming requests and attempts to parse the body as XML.
If successful, will add the resulting XML maps to the :params key, the :xml-params key, and the :body.
Intercepts incoming requests and attempts to parse the body as XML. If successful, will add the resulting XML maps to the :params key, the :xml-params key, and the :body.
(wrap-xml-response handler)
(wrap-xml-response handler options)
Intercepts outgoing collections and attempts to coerce them into XML.
Accepts the following options:
:sexprs - true if the body is expected to be in the form of vector S-expresions :elements - true if the body is expected to be in the form of a vector of XML maps
For backwards-compatibility reasons the wrapper assumes that clojure.data.xml elements are provided; as such the default behaviour is as if the options {:elements true} are passed to this wrapper.
Intercepts outgoing collections and attempts to coerce them into XML. Accepts the following options: :sexprs - true if the body is expected to be in the form of vector S-expresions :elements - true if the body is expected to be in the form of a vector of XML maps For backwards-compatibility reasons the wrapper assumes that clojure.data.xml elements are provided; as such the default behaviour is as if the options {:elements true} are passed to this wrapper.
(xml-request? request)
Determine if the incoming collection represents an XML request.
Determine if the incoming collection represents an XML request.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close