: <text-content> ( body -- response )
"text/plain" <content> ;
-
+
+: <html-content> ( body -- response )
+ "text/html" <content> ;
+
: trivial-response-body ( code message -- )
<XML
<html>
: <trivial-response> ( code message -- response )
2dup [ trivial-response-body ] with-string-writer
- "text/html" <content>
+ <html-content>
swap >>message
swap >>code ;