Project

General

Profile

« Previous | Next » 

Revision bb88b1aa

Added by normal over 6 years ago

webrick: support Proc objects as body responses

  • lib/webrick/httpresponse.rb (send_body): call send_body_proc
    (send_body_proc): new method
    (class ChunkedWrapper): new class

  • test/webrick/test_httpresponse.rb (test_send_body_proc): new test
    (test_send_body_proc_chunked): ditto
    [Feature #855]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e