[ruby-cvs:67765] normal:r60584 (trunk): webrick: support Proc objects as body responses

normal at ruby-lang.org normal at ruby-lang.org
Tue Oct 31 08:56:44 JST 2017


normal	2017-10-31 08:56:44 +0900 (Tue, 31 Oct 2017)

  New Revision: 60584

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60584

  Log:
    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]

  Modified files:
    trunk/lib/webrick/httpresponse.rb
    trunk/test/webrick/test_httpresponse.rb


More information about the ruby-cvs mailing list