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
This commit is contained in:
parent
c4e5930f9d
commit
34cd43aca9
@ -35,6 +35,9 @@ end
|
|||||||
class Net::HTTPProcessing < Net::HTTPInformation # 102
|
class Net::HTTPProcessing < Net::HTTPInformation # 102
|
||||||
HAS_BODY = false
|
HAS_BODY = false
|
||||||
end
|
end
|
||||||
|
class Net::HTTPEarlyHints < Net::HTTPInformation # 103 - RFC 8297
|
||||||
|
HAS_BODY = false
|
||||||
|
end
|
||||||
|
|
||||||
class Net::HTTPOK < Net::HTTPSuccess # 200
|
class Net::HTTPOK < Net::HTTPSuccess # 200
|
||||||
HAS_BODY = true
|
HAS_BODY = true
|
||||||
@ -232,6 +235,7 @@ class Net::HTTPResponse
|
|||||||
'100' => Net::HTTPContinue,
|
'100' => Net::HTTPContinue,
|
||||||
'101' => Net::HTTPSwitchProtocol,
|
'101' => Net::HTTPSwitchProtocol,
|
||||||
'102' => Net::HTTPProcessing,
|
'102' => Net::HTTPProcessing,
|
||||||
|
'103' => Net::HTTPEarlyHints,
|
||||||
|
|
||||||
'200' => Net::HTTPOK,
|
'200' => Net::HTTPOK,
|
||||||
'201' => Net::HTTPCreated,
|
'201' => Net::HTTPCreated,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user