Class: Rakie::HttpRequest::Head
- Inherits:
-
Object
- Object
- Rakie::HttpRequest::Head
- Defined in:
- lib/rakie/http_proto.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
Returns the value of attribute method.
-
#path ⇒ Object
Returns the value of attribute path.
-
#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.
20 21 22 23 24 |
# File 'lib/rakie/http_proto.rb', line 20 def initialize @method = 'HEAD' @path = '/' @version = 'HTTP/1.1' end |
Instance Attribute Details
#method ⇒ Object
Returns the value of attribute method.
18 19 20 |
# File 'lib/rakie/http_proto.rb', line 18 def method @method end |
#path ⇒ Object
Returns the value of attribute path.
18 19 20 |
# File 'lib/rakie/http_proto.rb', line 18 def path @path end |
#version ⇒ Object
Returns the value of attribute version.
18 19 20 |
# File 'lib/rakie/http_proto.rb', line 18 def version @version end |