{"action":"created","issue":{"url":"https://api.github.com/repos/Alamofire/Alamofire/issues/512","labels_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/512/labels{/name}","comments_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/512/comments","events_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/512/events","html_url":"https://github.com/Alamofire/Alamofire/pull/512","id":85398493,"number":512,"title":"Added .stream callback to receive streaming data responses","user":{"login":"psobot","id":213293,"avatar_url":"https://avatars.githubusercontent.com/u/213293?v=3","gravatar_id":"","url":"https://api.github.com/users/psobot","html_url":"https://github.com/psobot","followers_url":"https://api.github.com/users/psobot/followers","following_url":"https://api.github.com/users/psobot/following{/other_user}","gists_url":"https://api.github.com/users/psobot/gists{/gist_id}","starred_url":"https://api.github.com/users/psobot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psobot/subscriptions","organizations_url":"https://api.github.com/users/psobot/orgs","repos_url":"https://api.github.com/users/psobot/repos","events_url":"https://api.github.com/users/psobot/events{/privacy}","received_events_url":"https://api.github.com/users/psobot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-05T03:10:57Z","updated_at":"2015-06-11T21:26:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Alamofire/Alamofire/pulls/512","html_url":"https://github.com/Alamofire/Alamofire/pull/512","diff_url":"https://github.com/Alamofire/Alamofire/pull/512.diff","patch_url":"https://github.com/Alamofire/Alamofire/pull/512.patch"},"body":"One feature that Alamofire currently lacks is the ability to receive data responses from servers incrementally. This can be useful in a number of cases, such as when displaying partial data to a user or streaming data without a known or finite length.\r\n\r\nThis PR adds a `.stream` function to `Request`, allowing clients of Alamofire to incrementally receive data from servers as it arrives. When using the `.stream` function, data is no longer accumulated into the `responseObject` object, as streams may be of unbounded length. (It's up to the calling code to join together the `NSData` objects returned in the `.stream` callback if the full response's data is needed.)\r\n\r\nThis PR also includes a test case to verify the behaviour of the `.stream` function, and to ensure that it doesn't conflict with the `.progress` functionality that already exists on `Request`."},"comment":{"url":"https://api.github.com/repos/Alamofire/Alamofire/issues/comments/111281978","html_url":"https://github.com/Alamofire/Alamofire/pull/512#issuecomment-111281978","issue_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/512","id":111281978,"user":{"login":"cnoon","id":169110,"avatar_url":"https://avatars.githubusercontent.com/u/169110?v=3","gravatar_id":"","url":"https://api.github.com/users/cnoon","html_url":"https://github.com/cnoon","followers_url":"https://api.github.com/users/cnoon/followers","following_url":"https://api.github.com/users/cnoon/following{/other_user}","gists_url":"https://api.github.com/users/cnoon/gists{/gist_id}","starred_url":"https://api.github.com/users/cnoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnoon/subscriptions","organizations_url":"https://api.github.com/users/cnoon/orgs","repos_url":"https://api.github.com/users/cnoon/repos","events_url":"https://api.github.com/users/cnoon/events{/privacy}","received_events_url":"https://api.github.com/users/cnoon/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T21:26:03Z","updated_at":"2015-06-11T21:26:03Z","body":"Thank you for this PR @psobot! My apologies for not getting back to you sooner. Our TC has been really busy this week at WWDC. I'm really excited about this change but haven't had enough time to go through it in depth. I should be able to get to it here in the next few days.\r\n\r\nThank you for your patience! 🍻"}}