Liking cljdoc? Tell your friends :D

clojusc.ring.xml


->xmlclj

(->xml data options)
source

get-xml-bodyclj

(get-xml-body request)

Get the XML body from a request.

Get the XML body from a request.
sourceraw docstring

request->mapsclj

(request->maps request options)
source

wrap-xml-requestclj

(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.
sourceraw docstring

wrap-xml-responseclj

(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.
sourceraw docstring

xml->mapsclj

(xml->maps str)
source

xml-request?clj

(xml-request? request)

Determine if the incoming collection represents an XML request.

Determine if the incoming collection represents an XML request.
sourceraw docstring

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

× close