You can use a baisc http parser like this: https://www.npmjs.com/package/http-message-parser
On Monday, 7 April 2014 04:26:24 UTC+3, Hendrik Cech wrote: > > Hey, > > I'm currently trying to make multipart/mixed requests and parse the > responses. The format is explained here: > https://developers.google.com/storage/docs/json_api/v1/how-tos/batch > Implementing the body generator for the request wasn't too hard. Now I'm > thinking about how to write a streaming response parser. > I would like to have an api similar to this: > > http.request(opts, function(res) { > var parser = new Parser() > res.pipe(parser) > parser.on('part', function(part) { … }) > }) > > Each part of the response is a valid http response in itself. Is it > therefore possible to use the core http module to parse the individual > parts? > I'm not too eager to reimplement a http parser. Unfortunately I haven't > found a module for that job either. > > Thanks, > Hendrik > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. To post to this group, send email to nodejs@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/86db9ce4-b9da-42af-b4a4-097514356ca8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.