chickadee » call-with-query » display-content-type-&c.

display-content-type-&c.procedure
display-content-type-&c. content-type-&c.procedure

Write the content-type headers and e.g. XML prolog (if necessary); do not, however, write the status (see display-status and display-status-&c.).

Valid content-types are xhtml, html, text, json, png, xml.

content-type-&c.
The content-type-and--prolog, e.g. xhtml
(define display-content-type-&c.
  (case-lambda
    (() (display-content-type-&c. (default-content-type-&c.)))
    ((content-type-&c.) ((alist-ref content-type-&cs. content-type-&c.)))))