This is the base class of PyCI. It is used by CherryPy to load the index (/), ‘static’, ‘html’, and ‘gettext_json’ requests.
Returns a json-encoded version of the locale in question (for the jQuery gettext plugin).
Based on code from http://plugins.jquery.com/project/gettext Thanks Sabin Iacob!
Returns files from the given filepath. If the file is gzip-compressed the Content-Encoding will be set to ‘gzip’ and the file will be served as-is. under the assumption that the browser can handle gzip compression.
The serve-gzipped-files-as-is method saves a lot of CPU in compressing and decompressing files. Very nice for embedded systems.