Class: Rakie::HttpResponse::Head
- Inherits:
-
Object
- Object
- Rakie::HttpResponse::Head
- Defined in:
- lib/rakie/http_proto.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#status ⇒ Object
Returns the value of attribute status.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ Head
constructor
A new instance of Head.
Constructor Details
#initialize ⇒ Head
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
#message ⇒ Object
Returns the value of attribute message.
165 166 167 |
# File 'lib/rakie/http_proto.rb', line 165 def @message end |
#status ⇒ Object
Returns the value of attribute status.
165 166 167 |
# File 'lib/rakie/http_proto.rb', line 165 def status @status end |
#version ⇒ Object
Returns the value of attribute version.
165 166 167 |
# File 'lib/rakie/http_proto.rb', line 165 def version @version end |