This method is called from the
response object. It sends the HTTP response to your application as a stream.
When developing an application that interacts with OrientDB through functions and the HTTP protocol, eventually you'll need to send the response back to the requesting application. Using this method, you can trigger OrientDB to issue the response as a stream.
var request = response.sendStream(<code>, <reason>, <content-type>, <content>, <size>)
<code>Defines the HTTP response status code, as an integer.
<reason>Defines the HTTP response status reason, as a string.
<content-type>Defines the HTTP response content type, as a string.
<content>Defines the HTTP response content, as an input stream.
<size>Defines the size of the stream, as a long integer.
This method returns the HTTP request object.