Interface IMimeTypeCustomizer
Represents an object that can set information about specific MIME types and media ranges, to be later retrieved via an IMimeTypeProvider interface.
Inherited Members
Namespace: EmbedIO
Syntax
public interface IMimeTypeCustomizer : IMimeTypeProvider
Methods
AddCustomMimeType(String, String)
Adds a custom association between a file extension and a MIME type.
Declaration
void AddCustomMimeType(string extension, string mimeType)
Parameters
Type | Name | Description |
---|---|---|
String | extension | The file extension to associate to |
String | mimeType | The MIME type to associate to |
PreferCompression(String, Boolean)
Indicates whether to prefer compression when negotiating content encoding for a response with the specified content type, or whose content type is in the specified media range.
Declaration
void PreferCompression(string mimeType, bool preferCompression)
Parameters
Type | Name | Description |
---|---|---|
String | mimeType | The MIME type or media range. |
Boolean | preferCompression | true to prefer compression; otherwise, false. |