Skip to content

Commit ff1ce32

Browse files
committed
[DOC] Fix links
1 parent 7005946 commit ff1ce32

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

lib/net/http.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class HTTPHeaderSyntaxError < StandardError; end
5050
# - If you will make only a few requests of all kinds,
5151
# consider using the various singleton convenience methods in this class.
5252
# Each of the following methods automatically starts and finishes
53-
# a {session}[rdoc-ref:Net::HTTP@Sessions] that sends a single request:
53+
# a {session}[rdoc-ref:Net::HTTPSession@HTTP+Sessions] that sends a single request:
5454
#
5555
# # Return string response body.
5656
# Net::HTTP.get(hostname, path)
@@ -71,7 +71,7 @@ class HTTPHeaderSyntaxError < StandardError; end
7171
# Net::HTTP.put(uri, data)
7272
#
7373
# - If performance is important, consider using sessions, which lower request overhead.
74-
# This {session}[rdoc-ref:Net::HTTP@Sessions] has multiple requests for
74+
# This {session}[rdoc-ref:Net::HTTPSession@HTTP+Sessions] has multiple requests for
7575
# {HTTP methods}[https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods]
7676
# and {WebDAV methods}[https://en.wikipedia.org/wiki/WebDAV#Implementation]:
7777
#
@@ -183,7 +183,7 @@ class HTTPHeaderSyntaxError < StandardError; end
183183
# - May contain any number of requests.
184184
# - Is ended by instance method Net::HTTP#finish.
185185
#
186-
# See example sessions at {Strategies}[rdoc-ref:Net::HTTP@Strategies].
186+
# See example sessions at {Strategies}[rdoc-ref:Net::HTTPSession@Strategies].
187187
#
188188
# === Session Using \Net::HTTP.start
189189
#
@@ -1095,7 +1095,7 @@ class << HTTP
10951095
# http.port # => 8000
10961096
#
10971097
# For proxy-defining arguments +p_addr+ through +p_no_proxy+,
1098-
# see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server].
1098+
# see {Proxy Server}[rdoc-ref:Net::HTTPSession@Proxy+Server].
10991099
#
11001100
def HTTP.new(address, port = nil, p_addr = :ENV, p_port = nil, p_user = nil, p_pass = nil, p_no_proxy = nil, p_use_ssl = nil)
11011101
http = super address, port
@@ -1303,11 +1303,11 @@ def response_body_encoding=(value)
13031303

13041304
# Sets whether to determine the proxy from environment variable
13051305
# '<tt>ENV['http_proxy']</tt>';
1306-
# see {Proxy Using ENV['http_proxy']}[rdoc-ref:Net::HTTP@Proxy+Using+-27ENV-5B-27http_proxy-27-5D-27].
1306+
# see {Proxy Using ENV['http_proxy']}[rdoc-ref:Net::HTTPSession@Proxy+Using+-27ENV-5B-27http_proxy-27-5D-27].
13071307
attr_writer :proxy_from_env
13081308

13091309
# Sets the proxy address;
1310-
# see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server].
1310+
# see {Proxy Server}[rdoc-ref:Net::HTTPSession@Proxy+Server].
13111311
attr_writer :proxy_address
13121312

13131313
# Sets the proxy port;
@@ -1848,14 +1848,14 @@ def proxy_class?
18481848
end
18491849

18501850
# Returns +true+ if a proxy server is defined, +false+ otherwise;
1851-
# see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server].
1851+
# see {Proxy Server}[rdoc-ref:Net::HTTPSession@Proxy+Server].
18521852
def proxy?
18531853
!!(@proxy_from_env ? proxy_uri : @proxy_address)
18541854
end
18551855

18561856
# Returns +true+ if the proxy server is defined in the environment,
18571857
# +false+ otherwise;
1858-
# see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server].
1858+
# see {Proxy Server}[rdoc-ref:Net::HTTPSession@Proxy+Server].
18591859
def proxy_from_env?
18601860
@proxy_from_env
18611861
end

lib/net/http/request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
# See:
3737
#
3838
# - {Request header Accept-Encoding}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Accept-Encoding]
39-
# and {Compression and Decompression}[rdoc-ref:Net::HTTP@Compression+and+Decompression].
39+
# and {Compression and Decompression}[rdoc-ref:Net::HTTPSession@Compression+and+Decompression].
4040
# - {Request header Accept}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#accept-request-header].
4141
# - {Request header User-Agent}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#user-agent-request-header].
4242
# - {Request header Host}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#host-request-header].

0 commit comments

Comments
 (0)