lib/protocol/http/response.rb in protocol-http-0.7.0 vs lib/protocol/http/response.rb in protocol-http-0.8.0

- old
+ new

@@ -24,14 +24,13 @@ module Protocol module HTTP class Response prepend Body::Reader - def initialize(version = nil, status = 200, reason = nil, headers = [], body = nil, protocol = nil) + def initialize(version = nil, status = 200, headers = [], body = nil, protocol = nil) @version = version @status = status - @reason = reason @headers = headers @body = body @protocol = protocol end @@ -78,18 +77,18 @@ end def self.[](status, headers = [], body = nil, protocol = nil) body = Body::Buffered.wrap(body) - self.new(nil, status, nil, headers, body, protocol) + self.new(nil, status, headers, body, protocol) end def self.for_exception(exception) Response[500, Headers['content-type' => 'text/plain'], ["#{exception.class}: #{exception.message}"]] end def to_s - "#{@status} #{@reason} #{@version}" + "#{@status} #{@version}" end def to_ary return @status, @headers, @body end