nsISupports
Last changed in Gecko 1.7 void setUploadStream(in nsIInputStream aStream, in ACString aContentType, in long aContentLength); |
Attribute | Type | Description |
uploadStream |
| Get the stream (to be) uploaded by this channel. Read only. |
Sets a stream to be uploaded by this channel.
Most implementations of this interface require that the stream:
nsIInputStream.readSegments()
nsISeekableStream.seek()
.History here is that we need to support both streams that already have headers (for example, Content-Type and Content-Length) information prepended to the stream (by plugins) as well as clients (composer, uploading application) that want to upload data streams without any knowledge of protocol specifications. For this reason, we have a special meaning for the aContentType parameter.
void setUploadStream( in nsIInputStream aStream, in ACString aContentType, in long aContentLength );
aStream
aContentType
aContentLength
available
method.