[#60404] is RB_GC_GUARD needed in rb_io_syswrite? — Eric Wong <normalperson@...>
I haven't gotten it to crash as-is, but it seems like we need to
4 messages
2014/02/01
[#60682] volatile usages — Eric Wong <normalperson@...>
Hi all, I went ahead and removed some use of volatile which were once
5 messages
2014/02/13
[#60794] [RFC] rearrange+pack vtm and time_object structs — Eric Wong <normalperson@...>
Extracted from addendum on top of Feature #9362 (cache-aligned objects).
4 messages
2014/02/16
[#61139] [ruby-trunk - Feature #9577] [Open] [PATCH] benchmark/driver.rb: align columns in text output — normalperson@...
Issue #9577 has been reported by Eric Wong.
3 messages
2014/02/28
[ruby-core:61024] [ruby-trunk - Feature #9556] [Open] Add HTTP#get block functionality to HTTP.get
From:
sam.rawlins@...
Date:
2014-02-23 05:53:38 UTC
List:
ruby-core #61024
Issue #9556 has been reported by Sam Rawlins.
----------------------------------------
Feature #9556: Add HTTP#get block functionality to HTTP.get
https://bugs.ruby-lang.org/issues/9556
* Author: Sam Rawlins
* Status: Open
* Priority: Normal
* Assignee:
* Category:
* Target version:
----------------------------------------
This is kind of an alternative to #9527.
HTTP#get can be passed a block. The shortcut method, HTTP.get, however, cannot. This patch adds such functionality.
This allows someone to be able to write the response of a GET, in fragments, without dealing directly with Net::HTTPResponse, like the request in #9527:
File.open('result.zip', 'wb') {|f|
Net::HTTP.get('www.example.com', '/file.zip') do |chunk|
f.write chunk
end
}
This patch includes that example as documentation, and a test. It is attached, and available at: https://github.com/srawlins/ruby/compare/add-block-to-http-get
---Files--------------------------------
add-block-to-http-get.patch (2.03 KB)
--
http://bugs.ruby-lang.org/