Why Net::HTTPUnknownResponse.kind_of? Net::HTTPResponse returns false?

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Why Net::HTTPUnknownResponse.kind_of? Net::HTTPResponse returns false?



I am using the ruby's native library net/http and trying to check if a response is the type Net::HTTPResponse so the test is equivalent to:


net/http


Net::HTTPResponse


Net::HTTPUnknownResponse.kind_of? Net::HTTPResponse



which is returning false. What's wrong?


false



Ruby: 2.4.1









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

ryBgpJD9iV 4ZUZRlyseD6H ZKsYZt aCoFH,m1,vz uN,zKA05 9RxUmIwRp1cI4 m9JUJB,x ouF9MaXD
p7WEaUQRsKPDC7m Fe

Popular posts from this blog

Visual Studio Code: How to configure includePath for better IntelliSense results

Spring cloud config client Could not locate PropertySource

Regex - How to capture all iterations of a repeating pattern?