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

Inherits:
Request
  • Object
show all
Defined in:
lib/async/http/protocol/http11.rb

Instance Attribute Summary collapse

Attributes inherited from Request

#authority, #body, #headers, #method, #path, #version

Instance Method Summary collapse

Methods inherited from Request

[], #connect?, #head?, #idempotent?, #to_s

Methods included from Body::Buffered::Reader

#finish, #read

Constructor Details

#initialize(protocol) ⇒ Request

Returns a new instance of Request.



97
98
99
100
101
# File 'lib/async/http/protocol/http11.rb', line 97

def initialize(protocol)
	super(*protocol.read_request)
	
	@protocol = protocol
end

Instance Attribute Details

#protocolObject (readonly)

Returns the value of attribute protocol.



103
104
105
# File 'lib/async/http/protocol/http11.rb', line 103

def protocol
  @protocol
end

Instance Method Details

#hijackObject



109
110
111
# File 'lib/async/http/protocol/http11.rb', line 109

def hijack
	@protocol.hijack
end

#hijack?Boolean

Returns:

  • (Boolean)


105
106
107
# File 'lib/async/http/protocol/http11.rb', line 105

def hijack?
	true
end