class Innate::Response

Public Class Methods

mime_type() click to toggle source
# File lib/innate/response.rb, line 10
def self.mime_type
  options[:headers]['Content-Type'] || 'text/html'
end

Public Instance Methods

finish() click to toggle source
Calls superclass method
# File lib/innate/response.rb, line 22
def finish
  options.headers.each{|key, value| self[key] ||= value }
  Current.session.flush(self)
  super
end
reset() click to toggle source
# File lib/innate/response.rb, line 14
def reset
  self.status = 200
  self.header.delete('Content-Type')
  body.clear
  self.length = 0
  self
end