mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
lib/net/http.rb: [DOC] fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
448a014d42
commit
281d45ab0a
1 changed files with 6 additions and 6 deletions
|
@ -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/')
|
||||
|
|
Loading…
Reference in a new issue