Sha256: 38a4a92a89e383d73ae2932000d7a8fee4879fc108211690e8fd8d93d7203edc

Contents?: true

Size: 1.07 KB

Versions: 23

Compression:

Stored size: 1.07 KB

Contents

# frozen_string_literal: true
# for backward compatibility

# :enddoc:

class Gem::Net::HTTP
  ProxyMod = ProxyDelta
  deprecate_constant :ProxyMod
end

module Gem::Net::NetPrivate
  HTTPRequest = ::Gem::Net::HTTPRequest
  deprecate_constant :HTTPRequest
end

module Gem::Net
  HTTPSession = HTTP

  HTTPInformationCode  = HTTPInformation
  HTTPSuccessCode      = HTTPSuccess
  HTTPRedirectionCode  = HTTPRedirection
  HTTPRetriableCode    = HTTPRedirection
  HTTPClientErrorCode  = HTTPClientError
  HTTPFatalErrorCode   = HTTPClientError
  HTTPServerErrorCode  = HTTPServerError
  HTTPResponseReceiver = HTTPResponse

  HTTPResponceReceiver = HTTPResponse # Typo since 2001

  deprecate_constant :HTTPSession,
                     :HTTPInformationCode,
                     :HTTPSuccessCode,
                     :HTTPRedirectionCode,
                     :HTTPRetriableCode,
                     :HTTPClientErrorCode,
                     :HTTPFatalErrorCode,
                     :HTTPServerErrorCode,
                     :HTTPResponseReceiver,
                     :HTTPResponceReceiver
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rubygems-update-3.5.2 lib/rubygems/net-http/lib/net/http/backward.rb
rubygems-update-3.5.1 lib/rubygems/net-http/lib/net/http/backward.rb
rubygems-update-3.5.0 lib/rubygems/net-http/lib/net/http/backward.rb