Updated README

This commit is contained in:
yhirose 2020-12-19 22:43:31 -05:00
parent b9641048fc
commit 99f2229e48

View File

@ -120,48 +120,28 @@ svr.set_file_extension_and_mimetype_mapping("hh", "text/x-h");
The followings are built-in mappings: The followings are built-in mappings:
| Extension | MIME Type | | Extension | MIME Type | Extension | MIME Type |
| :--------- | :-------------------------- | | :--------- | :-------------------------- | :--------- | :-------------------------- |
| css | text/css | | css | text/css | mpga | audio/mpeg |
| csv | text/csv | | csv | text/csv | weba | audio/webm |
| txt | text/plain | | txt | text/plain | wav | audio/wave |
| vtt | text/vtt | | vtt | text/vtt | otf | font/otf |
| html, htm | text/html | | html, htm | text/html | ttf | font/ttf |
| apng | image/apng | | apng | image/apng | woff | font/woff |
| avif | image/avif | | avif | image/avif | woff2 | font/woff2 |
| bmp | image/bmp | | bmp | image/bmp | 7z | application/x-7z-compressed |
| gif | image/gif | | gif | image/gif | atom | application/atom+xml |
| png | image/png | | png | image/png | pdf | application/pdf |
| svg | image/svg+xml | | svg | image/svg+xml | mjs, js | application/javascript |
| webp | image/webp | | webp | image/webp | json | application/json |
| ico | image/x-icon | | ico | image/x-icon | rss | application/rss+xml |
| tif | image/tiff | | tif | image/tiff | tar | application/x-tar |
| tiff | image/tiff | | tiff | image/tiff | xhtml, xht | application/xhtml+xml |
| jpeg, jpg | image/jpeg | | jpeg, jpg | image/jpeg | xslt | application/xslt+xml |
| mp4 | video/mp4 | | mp4 | video/mp4 | xml | application/xml |
| mpeg | video/mpeg | | mpeg | video/mpeg | gz | application/gzip |
| webm | video/webm | | webm | video/webm | zip | application/zip |
| mp3 | audio/mp3 | | mp3 | audio/mp3 | wasm | application/wasm |
| mpga | audio/mpeg |
| weba | audio/webm |
| wav | audio/wave |
| otf | font/otf |
| ttf | font/ttf |
| woff | font/woff |
| woff2 | font/woff2 |
| 7z | application/x-7z-compressed |
| atom | application/atom+xml |
| pdf | application/pdf |
| mjs, js | application/javascript |
| json | application/json |
| rss | application/rss+xml |
| tar | application/x-tar |
| xhtml, xht | application/xhtml+xml |
| xslt | application/xslt+xml |
| xml | application/xml |
| gz | application/gzip |
| zip | application/zip |
| wasm | application/wasm |
NOTE: These static file server methods are not thread-safe. NOTE: These static file server methods are not thread-safe.