Sha256: ed257fb988cffcfe1202c135837e3e0958d92f4848e325bf58e7c619cc099868
Contents?: true
Size: 350 Bytes
Versions: 17
Compression:
Stored size: 350 Bytes
Contents
module Spire class Response attr_accessor :status_code, :headers, :content def initialize(content='', content_type='text/html; charset=utf8', status=200) @content = content @headers = {'Content-Type' => content_type} @status_code = status end def to_rack [status_code, headers, [content]] end end end
Version data entries
17 entries across 17 versions & 1 rubygems