class Hobbit::Response

Public Instance Methods

finish() click to toggle source
# File lib/halfling/response.rb, line 5
def finish      
  if status == 204 || status == 205 || status == 304 || (100..199).include?(status)
    headers.delete 'Content-Type'
  else
    headers['Content-Length'] = @length.to_s
  end
  [status, headers, body]
end