You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works as expected. However, if logging is used then an HTTP::StateError is raised:
require'http'require'logger'logger=Logger.new($stdout)response=HTTP.use({logging: {logger: logger}}).get('https://news.ycombinator.com')response.body.each{ |chunk| puts(chunk)}# raises: http/response/body.rb:67:in `stream!': body has already been consumed (HTTP::StateError)