Class: Async::HTTP::Protocol::Response

Inherits:
Protocol::HTTP::Response
  • Object
show all
Defined in:
lib/async/http/protocol/response.rb

Overview

This is generated by client protocols.

Direct Known Subclasses

HTTP1::Response, HTTP2::Response

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



32
33
34
# File 'lib/async/http/protocol/response.rb', line 32

def connection
  @connection
end

Instance Method Details

#hijack?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/async/http/protocol/response.rb', line 34

def hijack?
	false
end

#peerObject



38
39
40
41
42
# File 'lib/async/http/protocol/response.rb', line 38

def peer
	if @connection
		@connection.peer
	end
end

#remote_addressObject



44
45
46
# File 'lib/async/http/protocol/response.rb', line 44

def remote_address
	@remote_address ||= peer.remote_address
end

#remote_address=(value) ⇒ Object



48
49
50
# File 'lib/async/http/protocol/response.rb', line 48

def remote_address= value
	@remote_address = value
end