Package gluon :: Module contenttype
[hide private]
[frames] | no frames]

Module contenttype

source code

This file is part of web2py Web Framework (Copyrighted, 2007) Developed by Massimo Di Pierro <mdipierro@cs.depaul.edu> License: GPL v2

Functions [hide private]
 
contenttype(filename)
returns the Content-Type: string given the extension in the filename.
source code
Variables [hide private]
  CONTENT_TYPE = {'.ai': 'application/postscript', '.aif': 'audi...
Variables Details [hide private]

CONTENT_TYPE

Value:
{'.ai': 'application/postscript',
 '.aif': 'audio/x-aiff',
 '.aifc': 'audio/x-aiff',
 '.aiff': 'audio/x-aiff',
 '.asc': 'text/plain',
 '.au': 'audio/basic',
 '.avi': 'video/x-msvideo',
 '.bcpio': 'application/x-bcpio',
...