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 Method Summary collapse

Instance Method Details

#connectionObject



15
16
17
# File 'lib/async/http/protocol/response.rb', line 15

def connection
	nil
end

#hijack?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/async/http/protocol/response.rb', line 19

def hijack?
	false
end

#inspectObject



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

def inspect
	"#<#{self.class}:0x#{self.object_id.to_s(16)} status=#{status}>"
end

#peerObject



23
24
25
# File 'lib/async/http/protocol/response.rb', line 23

def peer
	self.connection&.peer
end

#remote_addressObject



27
28
29
# File 'lib/async/http/protocol/response.rb', line 27

def remote_address
	self.peer&.remote_address
end