ruby-changes:49519
From: kazu <ko1@a...>
Date: Sat, 6 Jan 2018 13:55:12 +0900 (JST)
Subject: [ruby-changes:49519] kazu:r61634 (trunk): Add 103 Early Hints
kazu 2018-01-06 13:55:06 +0900 (Sat, 06 Jan 2018) New Revision: 61634 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61634 Log: Add 103 Early Hints see https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml Modified files: trunk/lib/net/http/responses.rb Index: lib/net/http/responses.rb =================================================================== --- lib/net/http/responses.rb (revision 61633) +++ lib/net/http/responses.rb (revision 61634) @@ -35,6 +35,9 @@ end https://github.com/ruby/ruby/blob/trunk/lib/net/http/responses.rb#L35 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 https://github.com/ruby/ruby/blob/trunk/lib/net/http/responses.rb#L235 '100' => Net::HTTPContinue, '101' => Net::HTTPSwitchProtocol, '102' => Net::HTTPProcessing, + '103' => Net::HTTPEarlyHints, '200' => Net::HTTPOK, '201' => Net::HTTPCreated, -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/