Displaying 1 result from an estimated 1 matches for "httpredirecttion".
Did you mean:
httpredirection
2006 Sep 13
1
Net::HTTPResponse
Hello :) I have a problem with the Net::HTTP library...
The Net::HTTP library [1] uses a Net::HTTPResponse object for all it''s
responses from web servers. This class has many subclasses, such as
HTTPSuccess, HTTPRedirecttion, etc.
When obtaining a response, the library suggests to check what it is by testing
the class of the returned object - using case/when or kind_of? (which it does
internally)
So I need a mock object which can pass for a Net::HTTPResponse. However I
can''t create a Net::HTTPResponse dire...