Sha256: 3ae94bd91c6ab3ef62e81d5b6d1f729686afddcefedbf01aca1a4e23da08d0b9
Contents?: true
Size: 493 Bytes
Versions: 14
Compression:
Stored size: 493 Bytes
Contents
module Innate class Response < Rack::Response include Optioned options.dsl do o "Default headers, will not override headers already set", :headers, {'Content-Type' => 'text/html'} end def reset self.status = 200 self.header.delete('Content-Type') body.clear self.length = 0 self end def finish options.headers.each{|key, value| self[key] ||= value } Current.session.flush(self) super end end end
Version data entries
14 entries across 14 versions & 3 rubygems