summaryrefslogtreecommitdiff
path: root/doc/net-http
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2023-01-31 08:18:43 -0600
committergit <svn-admin@ruby-lang.org>2023-01-31 14:18:50 +0000
commitd92289f6330c57b0fe970a654dbf33314bfd6203 (patch)
treeca16857e5a014cbc6cdc015ce25501910f04942b /doc/net-http
parentbe81495c16a62979f78a91fe8ed34dbdc82e37db (diff)
[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP
(https://github.com/ruby/net-http/pull/110) https://github.com/ruby/net-http/commit/b098caa5e4
Diffstat (limited to 'doc/net-http')
-rw-r--r--doc/net-http/examples.rdoc3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/net-http/examples.rdoc b/doc/net-http/examples.rdoc
index dd4acecda6..c1366e7ad1 100644
--- a/doc/net-http/examples.rdoc
+++ b/doc/net-http/examples.rdoc
@@ -10,9 +10,10 @@ Many code examples here use these example websites:
Some examples also assume these variables:
- uri = URI('https://jsonplaceholder.typicode.com')
+ uri = URI('https://jsonplaceholder.typicode.com/')
uri.freeze # Examples may not modify.
hostname = uri.hostname # => "jsonplaceholder.typicode.com"
+ path = uri.path # => "/"
port = uri.port # => 443
So that example requests may be written as: