Я ищу параллельный метод в hapi
// Express + Request exmaple
function(req, res){
request('http://example.com/image.png').pipe(res);
}
Как передать ответ в hapi?
server.route({
method: "*",
path: "/api/results/{date}",
handler: (request, reply) => {
//????reply(?);
}
});
Stream object (Note - any Stream object must be compatible with the "streams2" API and not be in objectMode)
hapijs.com/api#reply-interface - person Clarkie   schedule 30.06.2015reply(s3.getObject(params).createReadStream());
- person Clarkie   schedule 30.06.2015