{"action":"created","issue":{"url":"https://api.github.com/repos/ninenines/cowboy/issues/681","labels_url":"https://api.github.com/repos/ninenines/cowboy/issues/681/labels{/name}","comments_url":"https://api.github.com/repos/ninenines/cowboy/issues/681/comments","events_url":"https://api.github.com/repos/ninenines/cowboy/issues/681/events","html_url":"https://github.com/ninenines/cowboy/pull/681","id":29287840,"number":681,"title":"Add cowboy_req:buffer_data/3","user":{"login":"ferd","id":111141,"avatar_url":"https://avatars.githubusercontent.com/u/111141?v=3","gravatar_id":"","url":"https://api.github.com/users/ferd","html_url":"https://github.com/ferd","followers_url":"https://api.github.com/users/ferd/followers","following_url":"https://api.github.com/users/ferd/following{/other_user}","gists_url":"https://api.github.com/users/ferd/gists{/gist_id}","starred_url":"https://api.github.com/users/ferd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferd/subscriptions","organizations_url":"https://api.github.com/users/ferd/orgs","repos_url":"https://api.github.com/users/ferd/repos","events_url":"https://api.github.com/users/ferd/events{/privacy}","received_events_url":"https://api.github.com/users/ferd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ninenines/cowboy/labels/Feature%20request","name":"Feature request","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-03-12T18:13:29Z","updated_at":"2015-08-16T13:05:52Z","closed_at":"2015-08-16T13:05:52Z","pull_request":{"url":"https://api.github.com/repos/ninenines/cowboy/pulls/681","html_url":"https://github.com/ninenines/cowboy/pull/681","diff_url":"https://github.com/ninenines/cowboy/pull/681.diff","patch_url":"https://github.com/ninenines/cowboy/pull/681.patch"},"body":"This function listens for and inspects its buffer until it has received\r\nsome amount of data (if any) and then returns.\r\n\r\nThis can be useful when, for example, multiple connections might be\r\nlistened to at once with a timeout to serve the first one to answer, or\r\nin similar cases where work can be done while waiting for data on the\r\nline."},"comment":{"url":"https://api.github.com/repos/ninenines/cowboy/issues/comments/131546399","html_url":"https://github.com/ninenines/cowboy/pull/681#issuecomment-131546399","issue_url":"https://api.github.com/repos/ninenines/cowboy/issues/681","id":131546399,"user":{"login":"essen","id":141739,"avatar_url":"https://avatars.githubusercontent.com/u/141739?v=3","gravatar_id":"","url":"https://api.github.com/users/essen","html_url":"https://github.com/essen","followers_url":"https://api.github.com/users/essen/followers","following_url":"https://api.github.com/users/essen/following{/other_user}","gists_url":"https://api.github.com/users/essen/gists{/gist_id}","starred_url":"https://api.github.com/users/essen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/essen/subscriptions","organizations_url":"https://api.github.com/users/essen/orgs","repos_url":"https://api.github.com/users/essen/repos","events_url":"https://api.github.com/users/essen/events{/privacy}","received_events_url":"https://api.github.com/users/essen/received_events","type":"User","site_admin":false},"created_at":"2015-08-16T13:05:52Z","updated_at":"2015-08-16T13:05:52Z","body":"I don't think I will ever merge this. The way the current body function works, you already can get data in a similar way. You just have to keep it around in your code.\r\n\r\nThe proxy use case in Cowboy 2 will be covered by the stream interface, not by traditional handlers (though your custom code may still use handlers), and the stream interface will automatically forward and/or buffer data depending on configuration (even if you use only normal handlers), so it doesn't look like it will be needed there either.\r\n\r\nClosing, thanks!"}}