nsIInputStreamChannel

 This interface provides methods to initialize an input stream channel.
 The input stream channel serves as a data pump for an input stream.
[scriptable, uuid(560a64ce-6d66-44db-b38e-864469c52d03)]
interface nsIInputStreamChannel : nsIChannel

Attributes

 Get/set the content stream

 This stream contains the data that will be pushed to the channel's
 stream listener.  If the stream is non-blocking and supports the
 nsIAsyncInputStream interface, then the stream will be read directly.
 Otherwise, the stream will be read on a background thread.

 This attribute can only be changed before the channel is opened.

 @throws NS_ERROR_IN_PROGRESS if the setter is called after the channel
 has been opened.
attribute nsIInputStream contentStream

Methods

 Sets the URI for this channel.
void setURI(in nsIURI aURI)