class HTTP::Features::AutoInflate
Public Instance Methods
stream_for(connection, response)
click to toggle source
# File lib/http/features/auto_inflate.rb, line 5 def stream_for(connection, response) if %w[deflate gzip x-gzip].include?(response.headers[:content_encoding]) Response::Inflater.new(connection) else connection end end