diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-30 18:32:40 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-30 18:32:40 +0000 |
commit | 3474d5c306832ae9fa8ffd23d31dfbc38c3247cb (patch) | |
tree | 4e57f642d320e3128704fd1f40e22fe1b771a8d3 /lib/net/http.rb | |
parent | 1fd4a6936daf1fdc4cbbd9ceb1a7e32e7d009b7c (diff) |
net/http: fix documentation for HTTP connection reuse
Thanks to Paul Kuruvilla <rohitpaulk@gmail.com> for the patch
* lib/net/http.rb: fix documentation for HTTP connection reuse
[ruby-core:84815] [Bug #14349]
From: Paul Kuruvilla <rohitpaulk@gmail.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/http.rb')
-rw-r--r-- | lib/net/http.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index c2d33018a2..2d575aeecc 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -104,14 +104,13 @@ module Net #:nodoc: # 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. |