Sends data via an outbound HTTP stream
Agent
Name | Type | Description |
---|---|---|
data | String or blob |
The data to be streamed
|
Nothing
This method attempts to send the specified data to the server provided when the target httpstream object was created. The stream is not guaranteed to be divided into chunks corresponding exactly to each httpstream.send() call. For example, if you issue several such calls very quickly, they may be concatenated into a single chunk.
Any attempt to send data to a cancelled or closed stream, including one which has received an error from the server, will cause a Squirrel error. Any on error callback supplied during the creation of the httpstream object will be executed if the send results in an error.
The rate-limiting mechanism will start counting an httpstream against the limit when the first send has been called.