vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

Function getMimeTypeForFile

Returns the standard mime type for the extension of the specified file name.

string getMimeTypeForFile (
  string filename
) pure @safe;

Any unknown file extension will map to "application/octet-stream".

Authors

Sönke Ludwig

Copyright

© 2012 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.