{"action":"created","issue":{"url":"https://api.github.com/repos/reverbrain/swarm/issues/82","repository_url":"https://api.github.com/repos/reverbrain/swarm","labels_url":"https://api.github.com/repos/reverbrain/swarm/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/reverbrain/swarm/issues/82/comments","events_url":"https://api.github.com/repos/reverbrain/swarm/issues/82/events","html_url":"https://github.com/reverbrain/swarm/pull/82","id":162328261,"number":82,"title":"Chunked transfer encoding support.","user":{"login":"bioothod","id":1847575,"avatar_url":"https://avatars.githubusercontent.com/u/1847575?v=3","gravatar_id":"","url":"https://api.github.com/users/bioothod","html_url":"https://github.com/bioothod","followers_url":"https://api.github.com/users/bioothod/followers","following_url":"https://api.github.com/users/bioothod/following{/other_user}","gists_url":"https://api.github.com/users/bioothod/gists{/gist_id}","starred_url":"https://api.github.com/users/bioothod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bioothod/subscriptions","organizations_url":"https://api.github.com/users/bioothod/orgs","repos_url":"https://api.github.com/users/bioothod/repos","events_url":"https://api.github.com/users/bioothod/events{/privacy}","received_events_url":"https://api.github.com/users/bioothod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-06-26T13:40:23Z","updated_at":"2016-06-30T15:45:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/reverbrain/swarm/pulls/82","html_url":"https://github.com/reverbrain/swarm/pull/82","diff_url":"https://github.com/reverbrain/swarm/pull/82.diff","patch_url":"https://github.com/reverbrain/swarm/pull/82.patch"},"body":"This pull request adds `Transfer-Encoding: chunked` support. Client can upload stream of data without knowing content length in advance, so he can set chunked transfer encoding and upload data as it becomes available.\r\n\r\nOne can test example server via following command:\r\n```\r\ncurl -v -H \"Expect:\" -H \"Transfer-Encoding: chunked\" --data-binary @test.data -o output.data http://localhost:1111/chunked\r\n```\r\n\r\nPull request also contains `requests` based chunked transfer tests. `Transfer-Encoding` header is not fully parsed though, since the only implementations I saw contained single entity without comma-separated fields. Also, additional chunk attributes are skipped and dropped, they are quite useless and there is no API (and no need in it) in the `thevoid`.\r\n\r\nThere is a slight API change, `on_data()` callback accepts additional boolean flag which tells user whether there will be more data or not. This callback is either used in local steam implementations (in particular it is heavily used in `buffered_request_stream` and just as a buffer wrapper in `simple_request_stream`, or in test handlers. I do not know any public user who depends on that particular function, so it looked safe to change."},"comment":{"url":"https://api.github.com/repos/reverbrain/swarm/issues/comments/229700162","html_url":"https://github.com/reverbrain/swarm/pull/82#issuecomment-229700162","issue_url":"https://api.github.com/repos/reverbrain/swarm/issues/82","id":229700162,"user":{"login":"bioothod","id":1847575,"avatar_url":"https://avatars.githubusercontent.com/u/1847575?v=3","gravatar_id":"","url":"https://api.github.com/users/bioothod","html_url":"https://github.com/bioothod","followers_url":"https://api.github.com/users/bioothod/followers","following_url":"https://api.github.com/users/bioothod/following{/other_user}","gists_url":"https://api.github.com/users/bioothod/gists{/gist_id}","starred_url":"https://api.github.com/users/bioothod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bioothod/subscriptions","organizations_url":"https://api.github.com/users/bioothod/orgs","repos_url":"https://api.github.com/users/bioothod/repos","events_url":"https://api.github.com/users/bioothod/events{/privacy}","received_events_url":"https://api.github.com/users/bioothod/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T15:45:11Z","updated_at":"2016-06-30T15:45:11Z","body":"Calling `on_data()` with `more_data` set to `false` is needed to flush internal cache.\r\n\r\nIs this multipart parser opensourced? Why it isn't present in the thevoid codebase?"}}
{"actor":{"display_login":"bioothod"}}