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.
If you setHostPort to a value that only has a host part, the port will not be reset. To reset the port set it to -1 beforehand. If setting the host succeeds, this method will return NS_OK, even if setting the port fails (error in parsing the port, or value out of range)
This setter is different from all other setters because it may be used to initialize the object. We define it separately allowing mutator implementors to define it separately, while the rest of the setters may be simply forwarded to the mutable URI.
Generated using TypeDoc
These methods allow the mutator to change various parts of the URI. They return the same nsIURIMutator so that we may chain setter operations: Example: let newURI = uri.mutate() .setSpec("http://example.com") .setQuery("hello") .finalize();