Skip to content
class method

Net::HTTP.get_print

(::URI::Generic uri, ?::Net::headers header) -> void
(::String host, ::String path, ?::Integer port) -> void
Net::HTTP.get_print(hostname, path, port = 80) → nil
Net::HTTP:get_print(uri, headers = {}, port = uri.port) → nil

Like Net::HTTP.get, but writes the returned body to $stdout; returns nil.