Registry / http-client / net-http-uploadprogress

net-http-uploadprogress

JSON →
library2.0.0rbrubygemsunverified

Get the file uploading progress.

gem install net-http-uploadprogress
INSTALL
IMPORT
SIG · NET-HTTP-UPLOADPRO
N
net-http-uploadprogress
http-clientrubyv2.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Net::HTTP::UploadProgress
require 'net/http/uploadprogress'

Track upload progress when sending multipart POST requests.

require 'net/http/uploadprogress' uri = URI('http://example.com/upload') file = File.open('large_file.zip') request = Net::HTTP::Post::Multipart.new(uri.path, file: UploadIO.new(file, 'application/octet-stream', 'large_file.zip')) request.upload_progress do |progress| puts "Uploaded #{progress}%" end response = Net::HTTP.start(uri.host, uri.port) { |http| http.request(request) }
Debug
Known issues
breakingRequires Ruby 2.0+ and the 'net/http' library; not compatible with older Ruby versions.
fix
Upgrade to Ruby 2.0 or later.
affects: >= 2.0.0
Upgrade
Version history
2.0.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Amazon
1
Resources
net-http-uploadprogress — gem install net-http-uploadprogress · libregistry