From adae03c9e78a3656968bc8d838f36c8269d611c9 Mon Sep 17 00:00:00 2001 From: Andy Brody Date: Tue, 14 Apr 2015 17:11:26 -0700 Subject: [PATCH] Add streaming payload history notes. --- history.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/history.md b/history.md index 7da477a..f8c520e 100644 --- a/history.md +++ b/history.md @@ -34,6 +34,11 @@ This release is largely API compatible, but makes several breaking changes. - Don't set basic auth header if explicit `Authorization` header is specified - Add `:proxy` option to requests, which can be used for thread-safe per-request proxy configuration, overriding `RestClient.proxy` +- Add actual support for streaming request payloads. Previously rest-client + would call `.to_s` even on RestClient::Payload::Streamed objects. Instead, + treat any object that responds to `.read` as a streaming payload and pass it + through to `.body_stream=` on the Net:HTTP object. This massively reduces the + memory required for large file uploads. # 1.8.0