diff options
Diffstat (limited to 'doc/net-http')
| -rw-r--r-- | doc/net-http/examples.rdoc | 3 | ||||
| -rw-r--r-- | doc/net-http/included_getters.rdoc | 3 |
2 files changed, 5 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: diff --git a/doc/net-http/included_getters.rdoc b/doc/net-http/included_getters.rdoc new file mode 100644 index 0000000000..7ac327f4b4 --- /dev/null +++ b/doc/net-http/included_getters.rdoc @@ -0,0 +1,3 @@ +This class also includes (indirectly) module Net::HTTPHeader, +which gives access to its +{methods for getting headers}[rdoc-ref:Net::HTTPHeader@Getters]. |
