2023-08-12 19:19:50 +03:00
|
|
|
# frozen_string_literal: true
|
2012-05-23 00:36:21 +04:00
|
|
|
# for backward compatibility
|
|
|
|
|
|
|
|
# :enddoc:
|
|
|
|
|
|
|
|
class Net::HTTP
|
|
|
|
ProxyMod = ProxyDelta
|
2021-11-03 13:23:44 +03:00
|
|
|
deprecate_constant :ProxyMod
|
2012-05-23 00:36:21 +04:00
|
|
|
end
|
|
|
|
|
|
|
|
module Net::NetPrivate
|
|
|
|
HTTPRequest = ::Net::HTTPRequest
|
2021-11-03 13:23:44 +03:00
|
|
|
deprecate_constant :HTTPRequest
|
2012-05-23 00:36:21 +04:00
|
|
|
end
|
|
|
|
|
2021-11-03 13:17:35 +03:00
|
|
|
module Net
|
2021-11-03 13:23:44 +03:00
|
|
|
HTTPSession = HTTP
|
|
|
|
|
|
|
|
HTTPInformationCode = HTTPInformation
|
|
|
|
HTTPSuccessCode = HTTPSuccess
|
|
|
|
HTTPRedirectionCode = HTTPRedirection
|
|
|
|
HTTPRetriableCode = HTTPRedirection
|
|
|
|
HTTPClientErrorCode = HTTPClientError
|
|
|
|
HTTPFatalErrorCode = HTTPClientError
|
|
|
|
HTTPServerErrorCode = HTTPServerError
|
|
|
|
HTTPResponseReceiver = HTTPResponse
|
|
|
|
|
2021-11-03 13:17:35 +03:00
|
|
|
HTTPResponceReceiver = HTTPResponse # Typo since 2001
|
2021-11-03 13:23:44 +03:00
|
|
|
|
|
|
|
deprecate_constant :HTTPSession,
|
|
|
|
:HTTPInformationCode,
|
|
|
|
:HTTPSuccessCode,
|
|
|
|
:HTTPRedirectionCode,
|
|
|
|
:HTTPRetriableCode,
|
|
|
|
:HTTPClientErrorCode,
|
|
|
|
:HTTPFatalErrorCode,
|
|
|
|
:HTTPServerErrorCode,
|
|
|
|
:HTTPResponseReceiver,
|
|
|
|
:HTTPResponceReceiver
|
2021-11-03 13:17:35 +03:00
|
|
|
end
|