Skip to main content

httpstream.cancel()

Cancels and closes an HTTP stream

Availability

Agent

Returns

Nothing

Description

This method cancels and closes the target httpstream object. An httpstream object can still be cancelled even if httpstream.closeasync() has already been called.

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.