lib/midori/response.rb in em-midori-0.1.6.1 vs lib/midori/response.rb in em-midori-0.1.7
- old
+ new
@@ -1,15 +1,16 @@
##
# Class for midori response
-# @attr [String] HTTP response status
-# @attr [Hash] HTTP response header
-# @attr [String] HTTP response body
+# @attr [String] status HTTP response status
+# @attr [Hash] header HTTP response header
+# @attr [String] body HTTP response body
class Midori::Response
attr_accessor :status, :header, :body
# @param [Fixnum] code HTTP response code
# @param [Hash] header HTTP response header
# @param [String] body HTTP response body
+ # Init a Response
def initialize(code = 200, header = Midori::Const::DEFAULT_HEADER.clone, body = '')
@status = Midori::Const::STATUS_CODE[code]
@header = header
@body = body
end