Class: Async::HTTP::Protocol::Request

Inherits:
Struct
  • Object
show all
Defined in:
lib/async/http/protocol/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authorityObject

Returns the value of attribute authority

Returns:

  • (Object)

    the current value of authority



24
25
26
# File 'lib/async/http/protocol/request.rb', line 24

def authority
  @authority
end

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



24
25
26
# File 'lib/async/http/protocol/request.rb', line 24

def body
  @body
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



24
25
26
# File 'lib/async/http/protocol/request.rb', line 24

def headers
  @headers
end

#methodObject

Returns the value of attribute method

Returns:

  • (Object)

    the current value of method



24
25
26
# File 'lib/async/http/protocol/request.rb', line 24

def method
  @method
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



24
25
26
# File 'lib/async/http/protocol/request.rb', line 24

def path
  @path
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



24
25
26
# File 'lib/async/http/protocol/request.rb', line 24

def version
  @version
end

Instance Method Details

#readObject



25
26
27
# File 'lib/async/http/protocol/request.rb', line 25

def read
	@body
end