net-http 0.3.2 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ require_relative '../http'
4
4
 
5
5
  if $0 == __FILE__
6
6
  require 'open-uri'
7
- IO.foreach(__FILE__) do |line|
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 => 'Payload Too Large',
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 Entity',
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: