Adapted from MIMEParse.

no subtypes hierarchy

Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
bestMatchSource Codeshared String? bestMatch(String[] supported, String header)

Takes a list of supported mime-types and finds the best match for all the media-ranges listed in header. The value of header must be a string that conforms to the format of the HTTP Accept: header. The value of supported is a list of mime-types.

mimeParse.bestMatch(["application/xbel+xml", "text/xml"],
   "text/*;q=0.5,*; q=0.1") == "text/xml"
Inherited Methods
Methods inherited from: Object
equals