1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/net/http
naruse 439e50789b Use Net::HTTPClientException instead of Net::HTTPServerException
`Net::HTTPServerException` has been deprecated since r63590. [Bug #14688]
And `net/http/responses.rb` uses the deprecated constant, so Ruby warns of the deprecation.

Example:

```bash
$ ruby -r net/http -e ''
/home/pocke/.rbenv/versions/trunk/lib/ruby/2.6.0/net/http/responses.rb:22: warning: constant Net::HTTPServerException is deprecated
```

This change suppresses the warning.
From: Masataka Pocke Kuwabara <kuwabara@pocke.me>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-06-06 12:13:16 +00:00
..
backward.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
exceptions.rb Add Net::HTTPClientException [Bug #14688] 2018-06-06 09:01:04 +00:00
generic_request.rb Raise ArgumentError if host component is nil 2018-03-08 16:07:54 +00:00
header.rb raise error if value contains CR/LF in iniheader of initialize_http_header 2017-12-20 12:06:59 +00:00
proxy_delta.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
request.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
requests.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
response.rb net/http: clear compressed chunk after decompression 2018-01-08 10:23:27 +00:00
responses.rb Use Net::HTTPClientException instead of Net::HTTPServerException 2018-06-06 12:13:16 +00:00
status.rb Add 103 Early Hints to Net::HTTP::STATUS_CODES [ci skip] 2018-01-12 00:16:59 +00:00