in src/RAPIDClient.js [60:84]
getStreamForInvocationResponse(id, callback, options) {
const ret = createResponseStream({
httpOptions: {
agent: this.agent,
http: this.http,
hostname: this.hostname,
method: 'POST',
port: this.port,
path:
'/2018-06-01/runtime/invocation/' +
encodeURIComponent(id) +
'/response',
highWaterMark: options?.highWaterMark,
},
});
return {
request: ret.request,
responseDone: ret.responseDone.then((_) => {
if (callback) {
callback();
}
}),
};
}