Not for my self. How to check quickly the response code of an URL request in Ruby?
Net::HTTP.get_response(URI.parse("http://localhost:3000/my_fancy_resource.html")).code == 200
I know things and I build stuff
Not for my self. How to check quickly the response code of an URL request in Ruby?
Net::HTTP.get_response(URI.parse("http://localhost:3000/my_fancy_resource.html")).code == 200