in src/UserFunction.js [238:254]
function _isHandlerStreaming(handler) {
if (
typeof handler[HANDLER_STREAMING] === 'undefined' ||
handler[HANDLER_STREAMING] === null ||
handler[HANDLER_STREAMING] === false
) {
return false;
}
if (handler[HANDLER_STREAMING] === STREAM_RESPONSE) {
return STREAM_RESPONSE;
} else {
throw new MalformedStreamingHandler(
'Only response streaming is supported.',
);
}
}