Sha256: 42ae0db7bc22e33b58b94e87a1d8eaa42f1d138a3f15f6a5ea381b95901761e6
Contents?: true
Size: 484 Bytes
Versions: 9
Compression:
Stored size: 484 Bytes
Contents
module NYNY class Request < Rack::Request end class Response < Rack::Response attr_reader :raw_body def initialize body=[], status=200, header={} @raw_body = body super body.to_s, status, header end def body= value @raw_body = value @body = [] @length = 0 if value.respond_to? :to_str write value.to_str elsif value.respond_to?(:each) value.each {|part| write part.to_s } end end end end
Version data entries
9 entries across 9 versions & 1 rubygems