Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsINetUtil Interface Reference

nsINetUtil provides various network-related utility methods. More...

import "nsINetUtil.idl";

Inheritance diagram for nsINetUtil:
Inheritance graph
[legend]
Collaboration diagram for nsINetUtil:
Collaboration graph
[legend]

List of all members.

Public Member Functions

AUTF8String parseContentType (in AUTF8String aTypeHeader, out AUTF8String aCharset, out boolean aHadCharset)
 Parse a content-type header and return the content type and charset (if any).

Detailed Description

nsINetUtil provides various network-related utility methods.

Definition at line 45 of file nsINetUtil.idl.


Member Function Documentation

AUTF8String nsINetUtil::parseContentType ( in AUTF8String  aTypeHeader,
out AUTF8String  aCharset,
out boolean  aHadCharset 
)

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

Parameters:
aTypeHeaderthe header string to parse
[out]aCharsetthe charset parameter specified in the header, if any.
[out]aHadCharsetwhether a charset was explicitly specified.
Returns:
the MIME type specified in the header, in lower-case.

The documentation for this interface was generated from the following file: