Project

General

Profile

Actions

Feature #9527

open

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

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

Status:
Open
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

Actions

Also available in: Atom PDF

Like0
Like0