net-http 0.3.2 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/{LICENSE.txt → BSDL} +3 -3
- data/COPYING +56 -0
- data/Gemfile +1 -0
- data/README.md +2 -1
- data/Rakefile +0 -7
- data/doc/net-http/examples.rdoc +2 -1
- data/doc/net-http/included_getters.rdoc +3 -0
- data/lib/net/http/exceptions.rb +1 -1
- data/lib/net/http/generic_request.rb +91 -15
- data/lib/net/http/header.rb +165 -68
- data/lib/net/http/proxy_delta.rb +1 -1
- data/lib/net/http/request.rb +50 -5
- data/lib/net/http/requests.rb +36 -1
- data/lib/net/http/response.rb +42 -22
- data/lib/net/http/responses.rb +507 -55
- data/lib/net/http/status.rb +7 -6
- data/lib/net/http.rb +1062 -498
- data/lib/net/https.rb +1 -1
- data/net-http.gemspec +9 -4
- metadata +9 -11
- data/.github/dependabot.yml +0 -6
- data/.github/workflows/test.yml +0 -22
- data/.gitignore +0 -7
- data/lib/net/http/backward.rb +0 -40
data/lib/net/http/status.rb
CHANGED
@@ -4,7 +4,7 @@ require_relative '../http'
|
|
4
4
|
|
5
5
|
if $0 == __FILE__
|
6
6
|
require 'open-uri'
|
7
|
-
|
7
|
+
File.foreach(__FILE__) do |line|
|
8
8
|
puts line
|
9
9
|
break if line.start_with?('end')
|
10
10
|
end
|
@@ -16,7 +16,7 @@ if $0 == __FILE__
|
|
16
16
|
next if ['(Unused)', 'Unassigned', 'Description'].include?(mes)
|
17
17
|
puts " #{code} => '#{mes}',"
|
18
18
|
end
|
19
|
-
puts "}"
|
19
|
+
puts "} # :nodoc:"
|
20
20
|
end
|
21
21
|
|
22
22
|
Net::HTTP::STATUS_CODES = {
|
@@ -55,15 +55,16 @@ Net::HTTP::STATUS_CODES = {
|
|
55
55
|
410 => 'Gone',
|
56
56
|
411 => 'Length Required',
|
57
57
|
412 => 'Precondition Failed',
|
58
|
-
413 => '
|
58
|
+
413 => 'Content Too Large',
|
59
59
|
414 => 'URI Too Long',
|
60
60
|
415 => 'Unsupported Media Type',
|
61
61
|
416 => 'Range Not Satisfiable',
|
62
62
|
417 => 'Expectation Failed',
|
63
63
|
421 => 'Misdirected Request',
|
64
|
-
422 => 'Unprocessable
|
64
|
+
422 => 'Unprocessable Content',
|
65
65
|
423 => 'Locked',
|
66
66
|
424 => 'Failed Dependency',
|
67
|
+
425 => 'Too Early',
|
67
68
|
426 => 'Upgrade Required',
|
68
69
|
428 => 'Precondition Required',
|
69
70
|
429 => 'Too Many Requests',
|
@@ -78,6 +79,6 @@ Net::HTTP::STATUS_CODES = {
|
|
78
79
|
506 => 'Variant Also Negotiates',
|
79
80
|
507 => 'Insufficient Storage',
|
80
81
|
508 => 'Loop Detected',
|
81
|
-
510 => 'Not Extended',
|
82
|
+
510 => 'Not Extended (OBSOLETED)',
|
82
83
|
511 => 'Network Authentication Required',
|
83
|
-
}
|
84
|
+
} # :nodoc:
|