My js code :
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.write("sending two files"+" ");
res.writeHead(200, {'Content-Type', "video/mp4"});
var stream = GridFile.stream(true);
stream.pipe(res);
res.end();
}).listen(3001, "ipaddress");
I'm sending two MIME types(text/plain,video/mp4) in one callback function from js file.How do I retrieve and parse the same in html ?
Can anyone please help me out regarding this ...