Class: Rakie::HttpRequest::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.



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

#methodObject

Returns the value of attribute method.



18
19
20
# File 'lib/rakie/http_proto.rb', line 18

def method
  @method
end

#pathObject

Returns the value of attribute path.



18
19
20
# File 'lib/rakie/http_proto.rb', line 18

def path
  @path
end

#versionObject

Returns the value of attribute version.



18
19
20
# File 'lib/rakie/http_proto.rb', line 18

def version
  @version
end