summaryrefslogtreecommitdiff
path: root/lib/net
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-06 04:55:06 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-06 04:55:06 +0000
commit34cd43aca958d9967f08df83d787ee06f77fd71f (patch)
treede61464573064d8dd8ff9b09e1b2755ce3470c8f /lib/net
parentc4e5930f9dacc2dbb2771757adbfa801718ab3f8 (diff)
Add 103 Early Hints
see https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/http/responses.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/net/http/responses.rb b/lib/net/http/responses.rb
index d57348b82f..617cd67328 100644
--- a/lib/net/http/responses.rb
+++ b/lib/net/http/responses.rb
@@ -35,6 +35,9 @@ end
class Net::HTTPProcessing < Net::HTTPInformation # 102
HAS_BODY = false
end
+class Net::HTTPEarlyHints < Net::HTTPInformation # 103 - RFC 8297
+ HAS_BODY = false
+end
class Net::HTTPOK < Net::HTTPSuccess # 200
HAS_BODY = true
@@ -232,6 +235,7 @@ class Net::HTTPResponse
'100' => Net::HTTPContinue,
'101' => Net::HTTPSwitchProtocol,
'102' => Net::HTTPProcessing,
+ '103' => Net::HTTPEarlyHints,
'200' => Net::HTTPOK,
'201' => Net::HTTPCreated,