From 281d45ab0a03aa4b90a0f3b992a305c278cb008d Mon Sep 17 00:00:00 2001 From: stomar Date: Sun, 21 Oct 2018 20:00:46 +0000 Subject: lib/net/http.rb: [DOC] fix typos git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/http.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/net/http.rb b/lib/net/http.rb index 6108b8a4ae..ccaad54f7d 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -35,7 +35,7 @@ module Net #:nodoc: # # 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: # # == 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: # === 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: # 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: # === 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: # 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/') -- cgit v1.2.3