ruby-changes:53074
From: stomar <ko1@a...>
Date: Mon, 22 Oct 2018 05:00:53 +0900 (JST)
Subject: [ruby-changes:53074] stomar:r65288 (trunk): lib/net/http.rb: [DOC] fix typos
stomar 2018-10-22 05:00:46 +0900 (Mon, 22 Oct 2018) New Revision: 65288 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65288 Log: lib/net/http.rb: [DOC] fix typos Modified files: trunk/lib/net/http.rb Index: lib/net/http.rb =================================================================== --- lib/net/http.rb (revision 65287) +++ lib/net/http.rb (revision 65288) @@ -35,7 +35,7 @@ module Net #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L35 # # Net::HTTP provides a rich library which can be used to build HTTP # user-agents. For more details about HTTP see - # [RFC2616](http://www.ietf.org/rfc/rfc2616.txt) + # [RFC2616](http://www.ietf.org/rfc/rfc2616.txt). # # Net::HTTP is designed to work closely with URI. URI::HTTP#host, # URI::HTTP#port and URI::HTTP#request_uri are designed to work with @@ -87,7 +87,7 @@ module Net #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L87 # # == How to use Net::HTTP # - # The following example code can be used as the basis of a HTTP user-agent + # The following example code can be used as the basis of an HTTP user-agent # which can perform a variety of request types using persistent # connections. # @@ -169,7 +169,7 @@ module Net #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L169 # === POST # # A POST can be made using the Net::HTTP::Post request class. This example - # creates a urlencoded POST body: + # creates a URL encoded POST body: # # uri = URI('http://www.example.com/todo.cgi') # req = Net::HTTP::Post.new(uri) @@ -186,7 +186,7 @@ module Net #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L186 # res.value # end # - # To send multipart/form-data use Net::HTTPHeader#set_form + # To send multipart/form-data use Net::HTTPHeader#set_form: # # req = Net::HTTP::Post.new(uri) # req.set_form([['upload', File.open('foo.bar')]], 'multipart/form-data') @@ -218,7 +218,7 @@ module Net #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L218 # === Basic Authentication # # Basic authentication is performed according to - # [RFC2617](http://www.ietf.org/rfc/rfc2617.txt) + # [RFC2617](http://www.ietf.org/rfc/rfc2617.txt). # # uri = URI('http://example.com/index.html?key=value') # @@ -262,7 +262,7 @@ module Net #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L262 # end # # Or if you simply want to make a GET request, you may pass in an URI - # object that has a HTTPS URL. Net::HTTP automatically turn on TLS + # object that has an HTTPS URL. Net::HTTP automatically turns on TLS # verification if the URI object has a 'https' URI scheme. # # uri = URI('https://example.com/') -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/