Readonly
uploadOptional
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.
Clones the upload stream. May only be called in the parent process. aContentLength could be -1 in case the size of the stream is unknown, otherwise it will contain the known size of the stream.
Sets a stream to be uploaded by this channel with the specified Content-Type and Content-Length header values.
Most implementations of this interface require that the stream: (1) implement threadsafe addRef and release (2) implement nsIInputStream::readSegments (3) implement nsISeekableStream::seek
The stream to be uploaded by this channel.
This value will replace any existing Content-Type header on the HTTP request, regardless of whether or not its empty.
A value of -1 indicates that the length of the stream should be determined by calling the stream's |available| method.
The HTTP request method to set on the stream.
True if the stream already contains headers for the HTTP request.
Generated using TypeDoc
Value of aStreamHasHeaders from the last successful call to explicitSetUploadStream. TRUE indicates the attached upload stream contains request headers.