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

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

Instance Attribute Summary

Attributes inherited from Request

#protocol

Attributes inherited from Request

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

Instance Method Summary collapse

Methods inherited from Request

#peer, #remote_address, #remote_address=

Methods inherited from Request

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

Methods included from Body::Reader

#close, #each, #finish, #read, #stop

Constructor Details

#initialize(protocol) ⇒ Request

Returns a new instance of Request.



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

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

Instance Method Details

#hijackObject



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

def hijack
	@protocol.hijack
end

#hijack?Boolean

Returns:

  • (Boolean)


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

def hijack?
	true
end