Sha256: 5475def15225273d6412c86fd1cf67883cdbbc272530cb24580dfa64d1153b21
Contents?: true
Size: 459 Bytes
Versions: 3
Compression:
Stored size: 459 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 } super end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
manveru-innate-2009.04.18 | lib/innate/response.rb |
manveru-innate-2009.04 | lib/innate/response.rb |
innate-2009.04 | lib/innate/response.rb |