[ruby-cvs:70073] normal:r62959 (trunk): webrick: use IO.copy_stream for multipart response

normal at ruby-lang.org normal at ruby-lang.org
Wed Mar 28 17:06:18 JST 2018


normal	2018-03-28 17:06:18 +0900 (Wed, 28 Mar 2018)

  New Revision: 62959

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

  Log:
    webrick: use IO.copy_stream for multipart response
    
    Use the new Proc response body feature to generate a multipart
    range response dynamically.  We use a flat array to minimize
    object overhead as much as possible; as many ranges may fit
    into an HTTP request header.
    
    * lib/webrick/httpservlet/filehandler.rb (multipart_body): new method
      (make_partial_content): use multipart_body

  Modified files:
    trunk/lib/webrick/httpservlet/filehandler.rb


More information about the ruby-cvs mailing list