diff options
author | BurdetteLamar <burdettelamar@yahoo.com> | 2022-11-16 17:39:17 +0000 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-11-19 10:17:54 -0500 |
commit | dbb902fc91b8b9a298d8656830f724c767345969 (patch) | |
tree | 319b7f1c74afd661c91f576e87d24e16d13980c2 /lib/net/http | |
parent | 951eabdcf2f0a8c8b0f23904b65bbaf93cde8d82 (diff) | |
download | ruby-dbb902fc91b8b9a298d8656830f724c767345969.tar.gz |
[ruby/net-http] Enhanced RDoc for Net::HTTP
https://github.com/ruby/net-http/commit/4444e8cea4
Diffstat (limited to 'lib/net/http')
-rw-r--r-- | lib/net/http/request.rb | 5 | ||||
-rw-r--r-- | lib/net/http/response.rb | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/lib/net/http/request.rb b/lib/net/http/request.rb index 55099019d6..1a6e588495 100644 --- a/lib/net/http/request.rb +++ b/lib/net/http/request.rb @@ -16,7 +16,7 @@ # Many code examples here use these example websites: # # - https://jsonplaceholder.typicode.com. -# - http:example.com. +# - http://example.com. # # Some examples also assume these variables: # @@ -54,8 +54,7 @@ # # A POST request may be sent using request class \Net::HTTP::Post: # -# require 'json' -# json = JSON.generate({title: 'foo', body: 'bar', userId: 1}) +# json = {title: 'foo', body: 'bar', userId: 1} # # => "{\"title\":\"foo\",\"body\":\"bar\",\"userId\":1}" # _uri = uri.dup # _uri.path = '/posts' diff --git a/lib/net/http/response.rb b/lib/net/http/response.rb index 043672d3e2..567b9573fa 100644 --- a/lib/net/http/response.rb +++ b/lib/net/http/response.rb @@ -12,7 +12,7 @@ # Many code examples here use these example websites: # # - https://jsonplaceholder.typicode.com. -# - http:example.com. +# - http://example.com. # # Some examples also assume these variables: # @@ -94,7 +94,7 @@ # - Net::HTTPAlreadyReported (208) # - Net::HTTPIMUsed (226) # -# - HTTPRedirection: +# - Net::HTTPRedirection: # # - Net::HTTPMultipleChoices (300) # - Net::HTTPMovedPermanently (301) |