nsINetUtil provides various network-related utility methods.
[scriptable, uuid(f0c5dddb-4713-4603-af2d-bf671838996b)]
interface nsINetUtil : nsISupports

Methods

 Parse a content-type header and return the content type and
 charset (if any).

 @param aTypeHeader the header string to parse
 @param [out] aCharset the charset parameter specified in the
              header, if any.
 @param [out] aHadCharset whether a charset was explicitly specified.
 @return the MIME type specified in the header, in lower-case.
AUTF8String parseContentType(in AUTF8String aTypeHeader, out AUTF8String aCharset, out boolean aHadCharset)