{"action":"created","issue":{"url":"https://api.github.com/repos/yutakahirano/fetch-with-streams/issues/57","labels_url":"https://api.github.com/repos/yutakahirano/fetch-with-streams/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/yutakahirano/fetch-with-streams/issues/57/comments","events_url":"https://api.github.com/repos/yutakahirano/fetch-with-streams/issues/57/events","html_url":"https://github.com/yutakahirano/fetch-with-streams/issues/57","id":105882194,"number":57,"title":"chunked uploads are not possible with http 1.x protocols","user":{"login":"wanderview","id":1256526,"avatar_url":"https://avatars.githubusercontent.com/u/1256526?v=3","gravatar_id":"","url":"https://api.github.com/users/wanderview","html_url":"https://github.com/wanderview","followers_url":"https://api.github.com/users/wanderview/followers","following_url":"https://api.github.com/users/wanderview/following{/other_user}","gists_url":"https://api.github.com/users/wanderview/gists{/gist_id}","starred_url":"https://api.github.com/users/wanderview/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wanderview/subscriptions","organizations_url":"https://api.github.com/users/wanderview/orgs","repos_url":"https://api.github.com/users/wanderview/repos","events_url":"https://api.github.com/users/wanderview/events{/privacy}","received_events_url":"https://api.github.com/users/wanderview/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-09-10T19:34:52Z","updated_at":"2015-09-11T14:06:54Z","closed_at":null,"body":"While trying lay some groundwork for chunked stream uploaded in gecko I ran across an issue.  According to @mcmanus we cannot reasonably providing chunked uploads for HTTP 1.x servers.  While HTTP 1.1 does support chunked, we can't determine if 1.1 is supported until after the request is sent.  That means we have to support HTTP 1.0 in the request upload which does not permit chunked.\r\n\r\nBased on this we need some way for a fetch to indicate if buffering the upload before the request is acceptable or not.  Maybe by explicitly setting a chunked encoding header.  Or maybe if the body is set as a ReadableStream, its automatically marked as chunked.  We would then fast fail chunked uploads on http 1.x servers.\r\n\r\nThoughts?\r\n\r\n@domenic @yutakahirano @annevk"},"comment":{"url":"https://api.github.com/repos/yutakahirano/fetch-with-streams/issues/comments/139556427","html_url":"https://github.com/yutakahirano/fetch-with-streams/issues/57#issuecomment-139556427","issue_url":"https://api.github.com/repos/yutakahirano/fetch-with-streams/issues/57","id":139556427,"user":{"login":"domenic","id":617481,"avatar_url":"https://avatars.githubusercontent.com/u/617481?v=3","gravatar_id":"","url":"https://api.github.com/users/domenic","html_url":"https://github.com/domenic","followers_url":"https://api.github.com/users/domenic/followers","following_url":"https://api.github.com/users/domenic/following{/other_user}","gists_url":"https://api.github.com/users/domenic/gists{/gist_id}","starred_url":"https://api.github.com/users/domenic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenic/subscriptions","organizations_url":"https://api.github.com/users/domenic/orgs","repos_url":"https://api.github.com/users/domenic/repos","events_url":"https://api.github.com/users/domenic/events{/privacy}","received_events_url":"https://api.github.com/users/domenic/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T14:06:54Z","updated_at":"2015-09-11T14:06:54Z","body":"I guess we could only cut it off early if the server supported 100-continue."}}