Module: Linzer::Response

Included in:
Linzer
Defined in:
lib/linzer/response.rb

Instance Method Summary collapse

Instance Method Details

#new_response(body = nil, status = 200, headers = {}) ⇒ Object



5
6
7
# File 'lib/linzer/response.rb', line 5

def new_response(body = nil, status = 200, headers = {})
  Rack::Response.new(body, status, headers.transform_values(&:to_s))
end