Class ContentTypeMappings
- Namespace
- FoundationaLLM.Common.Constants
- Assembly
- FoundationaLLM.Common.dll
Provides mappings from MIME content types to file type identifiers.
public static class ContentTypeMappings
- Inheritance
-
ContentTypeMappings
- Inherited Members
Fields
Map
Provides a mapping between MIME types and their corresponding file format extensions.
public static readonly IReadOnlyDictionary<string, string> Map
Field Value
Remarks
This dictionary contains a predefined set of MIME types as keys and their associated file format extensions as values. It is useful for converting MIME types to human-readable file format identifiers. The dictionary is read-only and cannot be modified at runtime.
TextContentTypes
Represents a collection of MIME types that are commonly associated with text-based content.
public static readonly HashSet<string> TextContentTypes
Field Value
Remarks
This collection includes MIME types for various text formats such as plain text, markup languages, programming languages, and data serialization formats. It can be used to identify or validate content types that are expected to contain textual data.