http.server -> mime.types

Description

The list of MIME types to use in the HTTP server.

The MIME type list consists of a MIME type key and a space delimited list of file extensions which identify as this MIME type.

Simple configuration

The mime.types composite property can contain any conforming simple property.

A conforming simple property is a valid MIME type key and a space delimited list of valid file extensions. It is an error if a file extension appears in more than one MIME type key within the mime.types composite property.

Composite configuration

The mime.types composite property does not contain any composite configuration.

Example

			mime.types {
				application/epub+zip        = epub
				application/java-archive    = jar war ear
				application/javascript      = js
				application/json            = json
				application/msword          = doc
				application/pdf             = pdf
				application/postscript      = ps eps
				application/rtf             = rtf
				application/xhtml+xml       = xhtml
				application/x-7z-compressed = 7z
				application/x-bzip          = bz
				application/x-bzip2         = bz2
				application/x-gzip          = gz gzip
				application/x-tar           = tar
				application/zip             = zip
				audio/mpeg                  = mp3
				audio/ogg                   = ogg
				font/woff                   = woff
				font/woff2                  = woff2
				image/bmp                   = bmp
				image/gif                   = gif
				image/jpeg                  = jpg jpeg
				image/png                   = png
				image/svg+xml               = svg svgz
				image/tiff                  = tif tiff
				image/x-icon                = ico
				text/css                    = css
				text/csv                    = csv
				text/html                   = html htm
				text/mathml                 = mml
				text/xml                    = xml bdml
				text/plain                  = txt
				video/mpeg                  = mpg mpeg
				video/mp4                   = mp4
				video/x-msvideo             = avi
				video/x-flv                 = flv
			}