The DataApp class is accessible via the paste.fileapp module.
Constructor Arguments:
content the content being sent to the client
headers the headers to send /w the response
The remaining kwargs correspond to headers, where the underscore is replaced with a dash. These values are only added to the headers if they are not already provided; thus, they can be used for default values. Examples include, but are not limited to:
content_type content_encoding content_location
cache_control()
This method provides validated construction of the Cache-Control header as well as providing for automated filling out of the EXPIRES header for HTTP/1.0 clients.
set_content()
This method provides a mechanism to set the content after the application has been constructed. This method does things like changing Last-Modified and Content-Length headers.
See the source for more information.