Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Test whether the protocol handler for this URI or that for any of its inner URIs has the given protocol flags. This will QI aURI to nsINestedURI and walk the nested URI chain.
whether any of the protocol handlers involved have all the flags in aFlags.
the URI in question
the flags we're testing for.
Extract the charset parameter location and value from a content-type header.
whether a charset parameter was found. This can be false even in cases when parseContentType would claim to have a charset, if the type that won out does not have a charset parameter specified.
the header string to parse
Parse a Content-Type header value in strict mode. This is a more conservative parser that reject things that violate RFC 7231 section 3.1.1.1. This is typically useful for parsing Content-Type header values that are used for HTTP requests, and those that are used to make security decisions.
the MIME type specified in the header, in lower-case.
the header string to parse
Parse a Content-Type header value in relaxed mode. This is a more permissive parser that ignores things that go against RFC 7231 section 3.1.1.1. This is typically useful for parsing Content-Type header values received from web servers where we want to make a best effort attempt at extracting a useful MIME type and charset.
NOTE: DO NOT USE THIS if you're going to make security decisions based on the result.
the MIME type specified in the header, in lower-case.
the header string to parse
Expands URL escape sequences
unescaped string
the URL to be unescaped
only ESCAPE_URL_ONLY_NONASCII and ESCAPE_URL_SKIP_CONTROL are recognized. If |aFlags| is 0 all escape sequences are unescaped
Generated using TypeDoc
nsINetUtil provides various network-related utility methods.