Class: Net::HTTPResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/net/http/spdy/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#associated_responsesObject (readonly)

Returns associated responses



21
22
23
# File 'lib/net/http/spdy/response.rb', line 21

def associated_responses
  @associated_responses
end

#uriObject

Returns the value of attribute uri.



3
4
5
# File 'lib/net/http/spdy/response.rb', line 3

def uri
  @uri
end

Instance Method Details

#has_associated_response?Boolean

Returns true when itself has a associated_response

Returns:

  • (Boolean)


14
15
16
17
# File 'lib/net/http/spdy/response.rb', line 14

def has_associated_response?
  @associated_responses ||= []
  not @associated_responses.empty?
end