Method: HTTP::Features::AutoInflate#wrap_response
- Defined in:
- lib/http/features/auto_inflate.rb
#wrap_response(response) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/http/features/auto_inflate.rb', line 11 def wrap_response(response) return response unless supported_encoding?(response) = { status: response.status, version: response.version, headers: response.headers, proxy_headers: response.proxy_headers, connection: response.connection, body: stream_for(response.connection), request: response.request } Response.new() end |