Function parseMimeTypeName
Parse MIME type name into pair of media and subtype strings.
auto auto parseMimeTypeName(String)
(
scope return String name
) pure nothrow @nogc @trusted
if (isSomeString!String && is(ElementEncodingType!String : char));
Returns
Tuple of media and subtype strings or pair of empty strings if could not parse name.
Example
auto t = parseMimeTypeName("text/plain");
assert(t .media == "text" && t .subtype == "plain");
t = parseMimeTypeName("not mime type");
assert(t .media == string .init && t .subtype == string .init);