diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-28 16:46:25 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-28 16:46:25 +0000 |
commit | 85883dc393f60adc3043d28899eff3f1ce53b4a5 (patch) | |
tree | cd93bb5643305ef3ea7329a662cc40fa9bc282d1 /lib/webrick/httprequest.rb | |
parent | d9a3c2e5920607b401e167265c1f28210f6921df (diff) | |
parent | 56765c559e73a9f9db5bb51a1ab9a994f33597ef (diff) |
add tag v2_5_1v2_5_1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v2_5_1@63029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/httprequest.rb')
-rw-r--r-- | lib/webrick/httprequest.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/webrick/httprequest.rb b/lib/webrick/httprequest.rb index 69345e44a5..b40bcb0d57 100644 --- a/lib/webrick/httprequest.rb +++ b/lib/webrick/httprequest.rb @@ -258,31 +258,6 @@ module WEBrick end ## - # Prepares the HTTPRequest object for use as the - # source for IO.copy_stream - - def body_reader - @body_tmp = [] - @body_rd = Fiber.new do - body do |buf| - @body_tmp << buf - Fiber.yield - end - end - @body_rd.resume # grab the first chunk and yield - self - end - - # for IO.copy_stream - def readpartial(size, buf = ''.b) # :nodoc - res = @body_tmp.shift or raise EOFError, 'end of file reached' - buf.replace(res) - res.clear - @body_rd.resume # get more chunks - buf - end - - ## # Request query as a Hash def query |