Class: Rakie::HttpResponse::Head

Inherits:
Object
  • Object
show all
Defined in:
lib/rakie/http_proto.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHead

Returns a new instance of Head.



167
168
169
170
171
# File 'lib/rakie/http_proto.rb', line 167

def initialize
  @version = 'HTTP/1.1'
  @status = 200
  @message = 'OK'
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



165
166
167
# File 'lib/rakie/http_proto.rb', line 165

def message
  @message
end

#statusObject

Returns the value of attribute status.



165
166
167
# File 'lib/rakie/http_proto.rb', line 165

def status
  @status
end

#versionObject

Returns the value of attribute version.



165
166
167
# File 'lib/rakie/http_proto.rb', line 165

def version
  @version
end