Project

General

Profile

Feature #9527

make Net::HTTP.get_print not only to $stdout but to an IO as a parameter

Added by bdimych (Dmitry Bolshakov) about 7 years ago. Updated about 7 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:60824]

Description

e.g.

url = 'http://server/path/large-file.zip'
fh = File.new(File.basename(url), 'wb')
Net::HTTP.get_print(URI(url), fh)
fh.close

imho looks good

Also available in: Atom PDF