handy_http_data.xml

Defines functions for reading and writing XML content while handling HTTP requests, using the dxml library: https://code.dlang.org/packages/dxml

Members

Functions

readXMLBody
DOMEntity!string readXMLBody(ServerHttpRequest request)

Reads an XML request body.

writeXMLBody
void writeXMLBody(ServerHttpResponse response, void delegate(ref XMLWriter!(Appender!string)) dg)

Writes an XML response body, by using the provided delegate function to compose the XML tag tree using a provided XMLWriter.