diff --git a/lib/net/http/header.rb b/lib/net/http/header.rb index 797a3be..bad20df 100644 --- a/lib/net/http/header.rb +++ b/lib/net/http/header.rb @@ -502,7 +502,7 @@ def capitalize(name) # :nodoc: # Returns an array of Range objects that represent # the value of field 'Range', # or +nil+ if there is no such field; - # see {Range request header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#range-request-header]: + # see {Range request header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Content-Range]: # # req = Net::HTTP::Get.new(uri) # req['Range'] = 'bytes=0-99,200-299,400-499' @@ -558,7 +558,7 @@ def range # set_range(begin..length) -> range # # Sets the value for field 'Range'; - # see {Range request header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#range-request-header]: + # see {Range request header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Content-Range]: # # With argument +length+: # @@ -610,7 +610,7 @@ def set_range(r, e = nil) # Returns the value of field 'Content-Length' as an integer, # or +nil+ if there is no such field; - # see {Content-Length request header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-length-request-header]: + # see {Content-Length request header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Content-Length]: # # res = Net::HTTP.get_response(hostname, '/nosuch/1') # res.content_length # => 2 @@ -625,7 +625,7 @@ def content_length end # Sets the value of field 'Content-Length' to the given numeric; - # see {Content-Length response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-length-response-header]: + # see {Content-Length response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Content-Length_2]: # # _uri = uri.dup # hostname = _uri.hostname # => "jsonplaceholder.typicode.com" @@ -649,7 +649,7 @@ def content_length=(len) # Returns +true+ if field 'Transfer-Encoding' # exists and has value 'chunked', # +false+ otherwise; - # see {Transfer-Encoding response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#transfer-encoding-response-header]: + # see {Transfer-Encoding response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Transfer-Encoding_2]: # # res = Net::HTTP.get_response(hostname, '/todos/1') # res['Transfer-Encoding'] # => "chunked" @@ -663,7 +663,7 @@ def chunked? # Returns a Range object representing the value of field # 'Content-Range', or +nil+ if no such field exists; - # see {Content-Range response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-range-response-header]: + # see {Content-Range response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Content-Range]: # # res = Net::HTTP.get_response(hostname, '/todos/1') # res['Content-Range'] # => nil @@ -681,7 +681,7 @@ def content_range # Returns the integer representing length of the value of field # 'Content-Range', or +nil+ if no such field exists; - # see {Content-Range response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-range-response-header]: + # see {Content-Range response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Content-Range]: # # res = Net::HTTP.get_response(hostname, '/todos/1') # res['Content-Range'] # => nil @@ -696,7 +696,7 @@ def range_length # Returns the {media type}[https://en.wikipedia.org/wiki/Media_type] # from the value of field 'Content-Type', # or +nil+ if no such field exists; - # see {Content-Type response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-type-response-header]: + # see {Content-Type response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Content-Type_2]: # # res = Net::HTTP.get_response(hostname, '/todos/1') # res['content-type'] # => "application/json; charset=utf-8" @@ -718,7 +718,7 @@ def content_type # {media type}[https://en.wikipedia.org/wiki/Media_type] # from the value of field 'Content-Type', # or +nil+ if no such field exists; - # see {Content-Type response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-type-response-header]: + # see {Content-Type response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Content-Type_2]: # # res = Net::HTTP.get_response(hostname, '/todos/1') # res['content-type'] # => "application/json; charset=utf-8" @@ -733,7 +733,7 @@ def main_type # {media type}[https://en.wikipedia.org/wiki/Media_type] # from the value of field 'Content-Type', # or +nil+ if no such field exists; - # see {Content-Type response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-type-response-header]: + # see {Content-Type response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Content-Type_2]: # # res = Net::HTTP.get_response(hostname, '/todos/1') # res['content-type'] # => "application/json; charset=utf-8" @@ -748,7 +748,7 @@ def sub_type # Returns the trailing ('parameters') part of the value of field 'Content-Type', # or +nil+ if no such field exists; - # see {Content-Type response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-type-response-header]: + # see {Content-Type response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Content-Type_2]: # # res = Net::HTTP.get_response(hostname, '/todos/1') # res['content-type'] # => "application/json; charset=utf-8" @@ -767,7 +767,7 @@ def type_params # Sets the value of field 'Content-Type'; # returns the new value; - # see {Content-Type request header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-type-request-header]: + # see {Content-Type request header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Content-Type]: # # req = Net::HTTP::Get.new(uri) # req.set_content_type('application/json') # => ["application/json"]