ruby-changes:49996
From: normal <ko1@a...>
Date: Wed, 31 Jan 2018 03:32:46 +0900 (JST)
Subject: [ruby-changes:49996] normal:r62113 (trunk): net/http: fix documentation for HTTP connection reuse
normal 2018-01-31 03:32:40 +0900 (Wed, 31 Jan 2018) New Revision: 62113 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62113 Log: net/http: fix documentation for HTTP connection reuse Thanks to Paul Kuruvilla <rohitpaulk@g...> for the patch * lib/net/http.rb: fix documentation for HTTP connection reuse [ruby-core:84815] [Bug #14349] From: Paul Kuruvilla <rohitpaulk@g...> Modified files: trunk/lib/net/http.rb Index: lib/net/http.rb =================================================================== --- lib/net/http.rb (revision 62112) +++ lib/net/http.rb (revision 62113) @@ -104,14 +104,13 @@ module Net #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L104 # open for multiple requests in the block if the server indicates it # supports persistent connections. # + # If you wish to re-use a connection across multiple HTTP requests without + # automatically closing it you can use ::new and then call #start and + # #finish manually. + # # The request types Net::HTTP supports are listed below in the section "HTTP # Request Classes". # - # If you wish to re-use a connection across multiple HTTP requests without - # automatically closing it you can use ::new instead of ::start. #request - # will automatically open a connection to the server if one is not currently - # open. You can manually close the connection with #finish. - # # For all the Net::HTTP request objects and shortcut request methods you may # supply either a String for the request path or a URI from which Net::HTTP # will extract the request path. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/