class HTTP::Features::AutoInflate

def stream_for(connection)

def stream_for(connection)
  Response::Body.new(Response::Inflater.new(connection))
end

def wrap_response(response)

def wrap_response(response)
  return response unless %w[deflate gzip x-gzip].include?(response.headers[:content_encoding])
  Response.new(
    :status => response.status,
    :version => response.version,
    :headers => response.headers,
    :proxy_headers => response.proxy_headers,
    :connection => response.connection,
    :body => stream_for(response.connection)
  )
end