Method: Net::HTTP::Persistent.responses

Defined in:
lib/rc_rest/net_http_persistent_stub.rb

.responsesObject

List of responses #request should return.

If a String is given a Net::HTTPOK is created

If a proc is given, it is called. The proc should raise an exception or return a Net::HTTPResponse subclass.

Unlike URI::HTTP from rc-rest 3.x and earlier you must return a Net::HTTPResponse subclass.



49
50
51
# File 'lib/rc_rest/net_http_persistent_stub.rb', line 49

def responses
  @responses
end