Function MimeType.addAlias

Add alias for this MIME type. Adding a duplicate does nothing.

void addAlias (
  string alias_
) pure nothrow @safe;

Example

auto mimeType = new MimeType("text/html");
mimeType.addAlias("application/html");
mimeType.addAlias("text/x-html");
mimeType.addAlias("application/html");
assert(mimeType.aliases == ["application/html", "text/x-html"]);
mimeType.clearAliases();
assert(mimeType.aliases().empty);