F# style discriminated unions or C#, using a custom type OneOf<T0, ... Tn> which holds a single value and has a .Match(...) method on it for exhaustive matching. Simple but powerful.
Constants for (almost) all MIME types and method to determine MIME type from a file name. Contains just over 1000 mime types.
Generated from the Apache server mime.types file and the H5PB nginx mime.types file. Works similar to .NET's...
More information
The ultimate file-extension & mime-type library with over 14,000+ signatures. Quickly detect extensions & mime types from a stream or byte array using magic numbers (file headers) and magic words. A default signature library is included and can be expanded using...
More information
A simple lookup from file name/extension to MIME/media type and vice versa, generated from mime-db, which in turn is compiled from IANA, Apache and nginx's MIME types.
Library that provides basic abstraction for Internet Content Type, and basic encodings and decodings. This includes handling and parsing of common data types, text, JSON, CSV, binary data and multi-part content, forms, etc.
MIME type handling utility for C#. Allows user to lookup mime type by filename, get file extensions for mime types. Includes all 600+ types and 800+ extensions defined by the Apache project.
Implements an option type (Strilanc.Value.May<T>) that encourages usage based on pattern matching rather than ForceGetValue. Also includes utility methods for producing, consuming and transforming May<T>.
Note on null: May<T> treats null like any other value. May.NoValue is distinct from null, and...
More information