{"action":"closed","number":82,"pull_request":{"url":"https://api.github.com/repos/reverbrain/swarm/pulls/82","id":75230014,"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","issue_url":"https://api.github.com/repos/reverbrain/swarm/issues/82","number":82,"state":"closed","locked":false,"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},"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.","created_at":"2016-06-26T13:40:23Z","updated_at":"2016-07-05T13:22:49Z","closed_at":"2016-07-05T13:22:49Z","merged_at":"2016-07-05T13:22:49Z","merge_commit_sha":"3df306950e72ecb1dd7aae1aa4eb1cb576d0971a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/reverbrain/swarm/pulls/82/commits","review_comments_url":"https://api.github.com/repos/reverbrain/swarm/pulls/82/comments","review_comment_url":"https://api.github.com/repos/reverbrain/swarm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reverbrain/swarm/issues/82/comments","statuses_url":"https://api.github.com/repos/reverbrain/swarm/statuses/e04fc6e7da596aa66880f4914682854fc2cb4a38","head":{"label":"bioothod:chunked","ref":"chunked","sha":"e04fc6e7da596aa66880f4914682854fc2cb4a38","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},"repo":{"id":59335261,"name":"swarm","full_name":"bioothod/swarm","owner":{"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},"private":false,"html_url":"https://github.com/bioothod/swarm","description":"Swarm is aiming at your web","fork":true,"url":"https://api.github.com/repos/bioothod/swarm","forks_url":"https://api.github.com/repos/bioothod/swarm/forks","keys_url":"https://api.github.com/repos/bioothod/swarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bioothod/swarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bioothod/swarm/teams","hooks_url":"https://api.github.com/repos/bioothod/swarm/hooks","issue_events_url":"https://api.github.com/repos/bioothod/swarm/issues/events{/number}","events_url":"https://api.github.com/repos/bioothod/swarm/events","assignees_url":"https://api.github.com/repos/bioothod/swarm/assignees{/user}","branches_url":"https://api.github.com/repos/bioothod/swarm/branches{/branch}","tags_url":"https://api.github.com/repos/bioothod/swarm/tags","blobs_url":"https://api.github.com/repos/bioothod/swarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bioothod/swarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bioothod/swarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/bioothod/swarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bioothod/swarm/statuses/{sha}","languages_url":"https://api.github.com/repos/bioothod/swarm/languages","stargazers_url":"https://api.github.com/repos/bioothod/swarm/stargazers","contributors_url":"https://api.github.com/repos/bioothod/swarm/contributors","subscribers_url":"https://api.github.com/repos/bioothod/swarm/subscribers","subscription_url":"https://api.github.com/repos/bioothod/swarm/subscription","commits_url":"https://api.github.com/repos/bioothod/swarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/bioothod/swarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/bioothod/swarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/bioothod/swarm/issues/comments{/number}","contents_url":"https://api.github.com/repos/bioothod/swarm/contents/{+path}","compare_url":"https://api.github.com/repos/bioothod/swarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bioothod/swarm/merges","archive_url":"https://api.github.com/repos/bioothod/swarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bioothod/swarm/downloads","issues_url":"https://api.github.com/repos/bioothod/swarm/issues{/number}","pulls_url":"https://api.github.com/repos/bioothod/swarm/pulls{/number}","milestones_url":"https://api.github.com/repos/bioothod/swarm/milestones{/number}","notifications_url":"https://api.github.com/repos/bioothod/swarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bioothod/swarm/labels{/name}","releases_url":"https://api.github.com/repos/bioothod/swarm/releases{/id}","deployments_url":"https://api.github.com/repos/bioothod/swarm/deployments","created_at":"2016-05-21T01:16:27Z","updated_at":"2016-05-21T01:16:28Z","pushed_at":"2016-07-01T12:28:52Z","git_url":"git://github.com/bioothod/swarm.git","ssh_url":"git@github.com:bioothod/swarm.git","clone_url":"https://github.com/bioothod/swarm.git","svn_url":"https://github.com/bioothod/swarm","homepage":null,"size":1296,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"reverbrain:master","ref":"master","sha":"0220e3478f8b78c4d11b2b443260364f6672434e","user":{"login":"reverbrain","id":1616511,"avatar_url":"https://avatars.githubusercontent.com/u/1616511?v=3","gravatar_id":"","url":"https://api.github.com/users/reverbrain","html_url":"https://github.com/reverbrain","followers_url":"https://api.github.com/users/reverbrain/followers","following_url":"https://api.github.com/users/reverbrain/following{/other_user}","gists_url":"https://api.github.com/users/reverbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/reverbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reverbrain/subscriptions","organizations_url":"https://api.github.com/users/reverbrain/orgs","repos_url":"https://api.github.com/users/reverbrain/repos","events_url":"https://api.github.com/users/reverbrain/events{/privacy}","received_events_url":"https://api.github.com/users/reverbrain/received_events","type":"Organization","site_admin":false},"repo":{"id":8936566,"name":"swarm","full_name":"reverbrain/swarm","owner":{"login":"reverbrain","id":1616511,"avatar_url":"https://avatars.githubusercontent.com/u/1616511?v=3","gravatar_id":"","url":"https://api.github.com/users/reverbrain","html_url":"https://github.com/reverbrain","followers_url":"https://api.github.com/users/reverbrain/followers","following_url":"https://api.github.com/users/reverbrain/following{/other_user}","gists_url":"https://api.github.com/users/reverbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/reverbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reverbrain/subscriptions","organizations_url":"https://api.github.com/users/reverbrain/orgs","repos_url":"https://api.github.com/users/reverbrain/repos","events_url":"https://api.github.com/users/reverbrain/events{/privacy}","received_events_url":"https://api.github.com/users/reverbrain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/reverbrain/swarm","description":"Swarm is aiming at your web","fork":false,"url":"https://api.github.com/repos/reverbrain/swarm","forks_url":"https://api.github.com/repos/reverbrain/swarm/forks","keys_url":"https://api.github.com/repos/reverbrain/swarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reverbrain/swarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reverbrain/swarm/teams","hooks_url":"https://api.github.com/repos/reverbrain/swarm/hooks","issue_events_url":"https://api.github.com/repos/reverbrain/swarm/issues/events{/number}","events_url":"https://api.github.com/repos/reverbrain/swarm/events","assignees_url":"https://api.github.com/repos/reverbrain/swarm/assignees{/user}","branches_url":"https://api.github.com/repos/reverbrain/swarm/branches{/branch}","tags_url":"https://api.github.com/repos/reverbrain/swarm/tags","blobs_url":"https://api.github.com/repos/reverbrain/swarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reverbrain/swarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reverbrain/swarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/reverbrain/swarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reverbrain/swarm/statuses/{sha}","languages_url":"https://api.github.com/repos/reverbrain/swarm/languages","stargazers_url":"https://api.github.com/repos/reverbrain/swarm/stargazers","contributors_url":"https://api.github.com/repos/reverbrain/swarm/contributors","subscribers_url":"https://api.github.com/repos/reverbrain/swarm/subscribers","subscription_url":"https://api.github.com/repos/reverbrain/swarm/subscription","commits_url":"https://api.github.com/repos/reverbrain/swarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/reverbrain/swarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/reverbrain/swarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/reverbrain/swarm/issues/comments{/number}","contents_url":"https://api.github.com/repos/reverbrain/swarm/contents/{+path}","compare_url":"https://api.github.com/repos/reverbrain/swarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reverbrain/swarm/merges","archive_url":"https://api.github.com/repos/reverbrain/swarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reverbrain/swarm/downloads","issues_url":"https://api.github.com/repos/reverbrain/swarm/issues{/number}","pulls_url":"https://api.github.com/repos/reverbrain/swarm/pulls{/number}","milestones_url":"https://api.github.com/repos/reverbrain/swarm/milestones{/number}","notifications_url":"https://api.github.com/repos/reverbrain/swarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reverbrain/swarm/labels{/name}","releases_url":"https://api.github.com/repos/reverbrain/swarm/releases{/id}","deployments_url":"https://api.github.com/repos/reverbrain/swarm/deployments","created_at":"2013-03-21T19:13:26Z","updated_at":"2016-01-28T09:30:54Z","pushed_at":"2016-07-05T13:22:49Z","git_url":"git://github.com/reverbrain/swarm.git","ssh_url":"git@github.com:reverbrain/swarm.git","clone_url":"https://github.com/reverbrain/swarm.git","svn_url":"https://github.com/reverbrain/swarm","homepage":null,"size":1389,"stargazers_count":24,"watchers_count":24,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":7,"forks":20,"open_issues":7,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reverbrain/swarm/pulls/82"},"html":{"href":"https://github.com/reverbrain/swarm/pull/82"},"issue":{"href":"https://api.github.com/repos/reverbrain/swarm/issues/82"},"comments":{"href":"https://api.github.com/repos/reverbrain/swarm/issues/82/comments"},"review_comments":{"href":"https://api.github.com/repos/reverbrain/swarm/pulls/82/comments"},"review_comment":{"href":"https://api.github.com/repos/reverbrain/swarm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reverbrain/swarm/pulls/82/commits"},"statuses":{"href":"https://api.github.com/repos/reverbrain/swarm/statuses/e04fc6e7da596aa66880f4914682854fc2cb4a38"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"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},"comments":10,"review_comments":0,"commits":9,"additions":629,"deletions":212,"changed_files":12}}
{"actor":{"display_login":"bioothod"}}