{"action":"created","issue":{"url":"https://api.github.com/repos/lepidum/http-2/issues/7","labels_url":"https://api.github.com/repos/lepidum/http-2/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/lepidum/http-2/issues/7/comments","events_url":"https://api.github.com/repos/lepidum/http-2/issues/7/events","html_url":"https://github.com/lepidum/http-2/issues/7","id":90659093,"number":7,"title":"handle end of data and trailing header consecutively","user":{"login":"kik","id":34070,"avatar_url":"https://avatars.githubusercontent.com/u/34070?v=3","gravatar_id":"","url":"https://api.github.com/users/kik","html_url":"https://github.com/kik","followers_url":"https://api.github.com/users/kik/followers","following_url":"https://api.github.com/users/kik/following{/other_user}","gists_url":"https://api.github.com/users/kik/gists{/gist_id}","starred_url":"https://api.github.com/users/kik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kik/subscriptions","organizations_url":"https://api.github.com/users/kik/orgs","repos_url":"https://api.github.com/users/kik/repos","events_url":"https://api.github.com/users/kik/events{/privacy}","received_events_url":"https://api.github.com/users/kik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-24T12:16:52Z","updated_at":"2015-06-30T13:17:21Z","closed_at":null,"body":"今のdata送信のコードは内部でキューを持っているので、\r\nいつheaderを呼び出していいのかわからない。\r\nheader → data → optional header\r\nを同じ送信キューにいれるようにしないと使う側が不便になる。\r\n一緒にいれるべき他のフレームはまだ調査してない。\r\nwindow_updateはキューにいれないことは確定。\r\nストリームの状態と関わるものは全部入れないといけないかも\r\n"},"comment":{"url":"https://api.github.com/repos/lepidum/http-2/issues/comments/117177876","html_url":"https://github.com/lepidum/http-2/issues/7#issuecomment-117177876","issue_url":"https://api.github.com/repos/lepidum/http-2/issues/7","id":117177876,"user":{"login":"kik","id":34070,"avatar_url":"https://avatars.githubusercontent.com/u/34070?v=3","gravatar_id":"","url":"https://api.github.com/users/kik","html_url":"https://github.com/kik","followers_url":"https://api.github.com/users/kik/followers","following_url":"https://api.github.com/users/kik/following{/other_user}","gists_url":"https://api.github.com/users/kik/gists{/gist_id}","starred_url":"https://api.github.com/users/kik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kik/subscriptions","organizations_url":"https://api.github.com/users/kik/orgs","repos_url":"https://api.github.com/users/kik/repos","events_url":"https://api.github.com/users/kik/events{/privacy}","received_events_url":"https://api.github.com/users/kik/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T13:17:21Z","updated_at":"2015-06-30T13:17:21Z","body":"headersとdataを単に同じキューにいれて、他のフレームはキューを追い抜いて送信すればいいかと思ったけど、最初に送信するheadersを追い抜いてはいけないので、ちゃんと考えないとだめ。\r\nRST_STREAMとかはデータがたくさんキューに入ってても、すぐに反映させたいはず。\r\n"}}