{"action":"closed","issue":{"url":"https://api.github.com/repos/joeferner/node-http-mitm-proxy/issues/15","labels_url":"https://api.github.com/repos/joeferner/node-http-mitm-proxy/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/joeferner/node-http-mitm-proxy/issues/15/comments","events_url":"https://api.github.com/repos/joeferner/node-http-mitm-proxy/issues/15/events","html_url":"https://github.com/joeferner/node-http-mitm-proxy/issues/15","id":82024891,"number":15,"title":"Modify all chunks at once","user":{"login":"ThauEx","id":1703260,"avatar_url":"https://avatars.githubusercontent.com/u/1703260?v=3","gravatar_id":"","url":"https://api.github.com/users/ThauEx","html_url":"https://github.com/ThauEx","followers_url":"https://api.github.com/users/ThauEx/followers","following_url":"https://api.github.com/users/ThauEx/following{/other_user}","gists_url":"https://api.github.com/users/ThauEx/gists{/gist_id}","starred_url":"https://api.github.com/users/ThauEx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThauEx/subscriptions","organizations_url":"https://api.github.com/users/ThauEx/orgs","repos_url":"https://api.github.com/users/ThauEx/repos","events_url":"https://api.github.com/users/ThauEx/events{/privacy}","received_events_url":"https://api.github.com/users/ThauEx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-28T16:49:02Z","updated_at":"2015-11-26T14:02:19Z","closed_at":"2015-11-26T14:02:19Z","body":"Hi,\r\nis it possible to modify all chunks at once? The response is a big json document and to parse it, I need to get all chunks first. \r\nWith the default https.request I could collect all chunks with the on data event and push all concated chunks in the on end event. I found the onResponseEnd event in the script, but I don't know how to return the combined chunks at once."}}