MimeType.name

The name of MIME type.

  1. string name()
    class MimeType
    @nogc @safe nothrow const pure
    string
    name
    ()
  2. string name(string typeName)

Examples

auto mimeType = new MimeType("text/plain");
assert(mimeType.name == "text/plain");
mimeType.name = "text/xml";
assert(mimeType.name == "text/xml");

Meta