The Document domain is a Tclhttpd Domain which supports the delivery of mime-typed content files to a browser.
Tclhttpd is surprisingly efficient at delivering files, because having located the content in a file system from a URL, it uses Tcl's fcopy command to simply deliver the content by means of the underlying Tcl Core (which is written in C.)
The Document domain also supports a wide variety of content translation and negotiation, including powerful templates, substitution and caching.
An instance of a Document domain is associated with a document root, which is a directory within some tcl file system.
Pseudo Code Document Algorithm