{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaWeb/HTTPClient.jl/issues/13","labels_url":"https://api.github.com/repos/JuliaWeb/HTTPClient.jl/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/JuliaWeb/HTTPClient.jl/issues/13/comments","events_url":"https://api.github.com/repos/JuliaWeb/HTTPClient.jl/issues/13/events","html_url":"https://github.com/JuliaWeb/HTTPClient.jl/issues/13","id":53330096,"number":13,"title":"Feature Request for 'Streaming Requests'","user":{"login":"prairie-guy","id":6313084,"avatar_url":"https://avatars.githubusercontent.com/u/6313084?v=3","gravatar_id":"","url":"https://api.github.com/users/prairie-guy","html_url":"https://github.com/prairie-guy","followers_url":"https://api.github.com/users/prairie-guy/followers","following_url":"https://api.github.com/users/prairie-guy/following{/other_user}","gists_url":"https://api.github.com/users/prairie-guy/gists{/gist_id}","starred_url":"https://api.github.com/users/prairie-guy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prairie-guy/subscriptions","organizations_url":"https://api.github.com/users/prairie-guy/orgs","repos_url":"https://api.github.com/users/prairie-guy/repos","events_url":"https://api.github.com/users/prairie-guy/events{/privacy}","received_events_url":"https://api.github.com/users/prairie-guy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-01-04T08:45:36Z","updated_at":"2015-01-23T07:20:12Z","closed_at":null,"body":"'Streaming Requests' is a feature that is implemented by the Python package 'Requests': http://docs.python-requests.org/en/latest/user/advanced/#streaming-requests\r\n\r\nIt would be great to have the same feature in HTTPClient.jl.\r\n\r\nA sample use case would be iterating over streaming API's. For example, a GET request that returns a continuous stream of json objects.\r\n\r\nMy specific need is being able to monitor a remote sensor that returns continuous voltage readings (in json format) in response to a GET call.\r\n\r\nThanks,\r\n\r\nBryan Daniels "},"comment":{"url":"https://api.github.com/repos/JuliaWeb/HTTPClient.jl/issues/comments/71156324","html_url":"https://github.com/JuliaWeb/HTTPClient.jl/issues/13#issuecomment-71156324","issue_url":"https://api.github.com/repos/JuliaWeb/HTTPClient.jl/issues/13","id":71156324,"user":{"login":"prairie-guy","id":6313084,"avatar_url":"https://avatars.githubusercontent.com/u/6313084?v=3","gravatar_id":"","url":"https://api.github.com/users/prairie-guy","html_url":"https://github.com/prairie-guy","followers_url":"https://api.github.com/users/prairie-guy/followers","following_url":"https://api.github.com/users/prairie-guy/following{/other_user}","gists_url":"https://api.github.com/users/prairie-guy/gists{/gist_id}","starred_url":"https://api.github.com/users/prairie-guy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prairie-guy/subscriptions","organizations_url":"https://api.github.com/users/prairie-guy/orgs","repos_url":"https://api.github.com/users/prairie-guy/repos","events_url":"https://api.github.com/users/prairie-guy/events{/privacy}","received_events_url":"https://api.github.com/users/prairie-guy/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T07:20:12Z","updated_at":"2015-01-23T07:20:12Z","body":"No luck. With ```blocking=false```, ```print(r )``` just prints ```RemoteRef```. Neither ```print(read available(bs))``` nor just ```read available(bs)``` return either. I am running Julia in Emacs, so I tried at a raw terminal, with the same result. \r\n\r\nHere is a redacted raw output when using ```ostream=STDOUT```:\r\n\r\n```\r\ndata:{\"type\":\"input\",\"timestamp\":1421997189623,\"from\":{\"user\":{\"id\":XXXXXXXXXXXXXXXXX},\"device\":{\"id\":\"XXXXXXXXXXXXXXXXX\",\"device\":\"littlebits-module-cloud\",\"setup_version\":\"1.0.0\",\"protocol_version\":\"1.1.0\",\"firmware_version\":\"1.0.140611a\",\"mac\":\"00e04c02df1a\",\"hash\":\"XXXXXXXXXXXXXXXXX\",\"ap\":{\"ssid\":\"XXXXXXXXXXXXXXXXX\",\"mac\":\"XXXXXXXXXXXXXXXXX\",\"strength\":85}},\"server\":{\"id\":\"XXXXXXXXXXXXXXXXX\"}},\"percent\":0,\"absolute\":3,\"name\":\"amplitude\",\"payload\":{\"percent\":0,\"absolute\":3}}\r\n\r\ndata:{\"type\":\"input\",\"timestamp\":1421997190383,\"from\":{\"user\":{\"id\":XXXXXXXXXXXXXXXXX},\"device\":{\"id\":\"XXXXXXXXXXXXXXXXX\",\"device\":\"littlebits-module-cloud\",\"setup_version\":\"1.0.0\",\"protocol_version\":\"1.1.0\",\"firmware_version\":\"1.0.140611a\",\"mac\":\"00e04c02df1a\",\"hash\":\"XXXXXXXXXXXXXXXXX\",\"ap\":{\"ssid\":\"XXXXXXXXXXXXXXXXX\",\"mac\":\"XXXXXXXXXXXXXXXXX\",\"strength\":85}},\"server\":{\"id\":\"XXXXXXXXXXXXXXXXX\"}},\"percent\":0,\"absolute\":4,\"name\":\"amplitude\",\"payload\":{\"percent\":0,\"absolute\":4}}\r\n\r\ndata:{\"type\":\"input\",\"timestamp\":1421997191163,\"from\":{\"user\":{\"id\":XXXXXXXXXXXXXXXXX},\"device\":{\"id\":\"XXXXXXXXXXXXXXXXX\",\"device\":\"littlebits-module-cloud\",\"setup_version\":\"1.0.0\",\"protocol_version\":\"1.1.0\",\"firmware_version\":\"1.0.140611a\",\"mac\":\"00e04c02df1a\",\"hash\":\"XXXXXXXXXXXXXXXXX\",\"ap\":{\"ssid\":\"XXXXXXXXXXXXXXXXX\",\"mac\":\"XXXXXXXXXXXXXXXXX\",\"strength\":85}},\"server\":{\"id\":\"XXXXXXXXXXXXXXXXX\"}},\"percent\":0,\"absolute\":3,\"name\":\"amplitude\",\"payload\":{\"percent\":0,\"absolute\":3}}\r\n\r\n```"}}