A dictionary mapping suffixes into MIME types. Default is signified
by an empty string, and is considered to be text/plain.
The mapping is used case-insensitively, and so should contain only
The SimpleHTTPRequestHandler defines the following methods:
The request is mapped to a local file by interpreting the request as
a path relative to the current working directory.
If the request was mapped to a directory, a 403 respond is output,
followed by the explanation 'Directory listing not supported'.
Any IOError exception in opening the requested file, is mapped
to a 404, 'File not found' error. Otherwise, the content
type is guessed using the extensions_map variable.
A 'Content-type:' with the guessed content type is output, and
then a blank line, signifying end of headers, and then the contents of
the file. The file is always opened in binary mode.
For example usage, see the implementation of the test()