2015-12-16 00:07:31 -05:00
|
|
|
# frozen_string_literal: false
|
2012-05-22 16:36:21 -04:00
|
|
|
# for backward compatibility
|
|
|
|
|
|
|
|
# :enddoc:
|
|
|
|
|
|
|
|
class Net::HTTP
|
|
|
|
ProxyMod = ProxyDelta
|
2021-11-03 06:23:44 -04:00
|
|
|
deprecate_constant :ProxyMod
|
2012-05-22 16:36:21 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
module Net::NetPrivate
|
|
|
|
HTTPRequest = ::Net::HTTPRequest
|
2021-11-03 06:23:44 -04:00
|
|
|
deprecate_constant :HTTPRequest
|
2012-05-22 16:36:21 -04:00
|
|
|
end
|
|
|
|
|
2021-11-03 06:17:35 -04:00
|
|
|
module Net
|
2021-11-03 06:23:44 -04:00
|
|
|
HTTPSession = HTTP
|
|
|
|
|
|
|
|
HTTPInformationCode = HTTPInformation
|
|
|
|
HTTPSuccessCode = HTTPSuccess
|
|
|
|
HTTPRedirectionCode = HTTPRedirection
|
|
|
|
HTTPRetriableCode = HTTPRedirection
|
|
|
|
HTTPClientErrorCode = HTTPClientError
|
|
|
|
HTTPFatalErrorCode = HTTPClientError
|
|
|
|
HTTPServerErrorCode = HTTPServerError
|
|
|
|
HTTPResponseReceiver = HTTPResponse
|
|
|
|
|
2021-11-03 06:17:35 -04:00
|
|
|
HTTPResponceReceiver = HTTPResponse # Typo since 2001
|
2021-11-03 06:23:44 -04:00
|
|
|
|
|
|
|
deprecate_constant :HTTPSession,
|
|
|
|
:HTTPInformationCode,
|
|
|
|
:HTTPSuccessCode,
|
|
|
|
:HTTPRedirectionCode,
|
|
|
|
:HTTPRetriableCode,
|
|
|
|
:HTTPClientErrorCode,
|
|
|
|
:HTTPFatalErrorCode,
|
|
|
|
:HTTPServerErrorCode,
|
|
|
|
:HTTPResponseReceiver,
|
|
|
|
:HTTPResponceReceiver
|
2021-11-03 06:17:35 -04:00
|
|
|
end
|