module Firehose::Rack::Helpers
Public Instance Methods
response(status, body='', headers={})
click to toggle source
Calculates the content of a message body for the response so that HTTP Keep-Alive connections work.
# File lib/firehose/rack.rb, line 26 def response(status, body='', headers={}) headers = {'Content-Length' => body.size.to_s}.merge(headers) [status, headers, [body]] end