auto mimeType = new MimeType("text/html"); mimeType.addParent("text/xml"); mimeType.addParent("text/plain"); mimeType.addParent("text/xml"); assert(mimeType.parents == ["text/xml", "text/plain"]); mimeType.clearParents(); assert(mimeType.parents().empty);
Add parent type for this MIME type. Adding a duplicate does nothing.