Function MimeType.addGlob
Add glob pattern for this MIME type. Adding a duplicate does nothing.
void addGlob
(
string pattern,
uint weight = 50u,
bool cs = false
) pure nothrow @safe;
void addGlob
(
MimeGlob mimeGlob
) pure nothrow @safe;
Example
auto mimeType = new MimeType("image/jpeg");
mimeType .addGlob("*.jpg");
mimeType .addGlob(MimeGlob("*.jpeg"));
mimeType .addGlob("*.jpg");
assert(mimeType .globs() == [MimeGlob("*.jpg"), MimeGlob("*.jpeg")]);
mimeType .clearGlobs();
assert(mimeType .globs() .empty);