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::Promise, HTTP2::Response

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



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

def connection
  @connection
end

Instance Method Details

#hijack?Boolean

Returns:

  • (Boolean)


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

def hijack?
  false
end

#peerObject



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

def peer
  if @connection
    @connection.peer
  end
end

#remote_addressObject



42
43
44
# File 'lib/async/http/protocol/response.rb', line 42

def remote_address
  @remote_address ||= peer.remote_address
end

#remote_address=(value) ⇒ Object



46
47
48
# File 'lib/async/http/protocol/response.rb', line 46

def remote_address= value
  @remote_address = value
end