Sha256: 75722d8e08cefbe388dbc3faa67d4c9ac89b90265bbadecaec54cfd89f7623f0

Contents?: true

Size: 684 Bytes

Versions: 32

Compression:

Stored size: 684 Bytes

Contents

# Module gets mixed in to Net::HTTP exception classes so we can attach our
# RESTRequest object to them and get the request parameters back out later.
module ChefNetHTTPExceptionExtensions
  attr_accessor :chef_rest_request
end

unless defined?(Net::HTTPClientException)
  Net::HTTPClientException = Net::HTTPServerException
end

require "net/http" unless defined?(Net::HTTP)
module Net
  class HTTPError
    include ChefNetHTTPExceptionExtensions
  end
  class HTTPRetriableError
    include ChefNetHTTPExceptionExtensions
  end
  class HTTPClientException
    include ChefNetHTTPExceptionExtensions
  end
  class HTTPFatalError
    include ChefNetHTTPExceptionExtensions
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
chef-15.17.4-universal-mingw32 lib/chef/monkey_patches/net_http.rb
chef-15.17.4 lib/chef/monkey_patches/net_http.rb
chef-15.16.7-universal-mingw32 lib/chef/monkey_patches/net_http.rb
chef-15.16.7 lib/chef/monkey_patches/net_http.rb
chef-15.16.4-universal-mingw32 lib/chef/monkey_patches/net_http.rb
chef-15.16.4 lib/chef/monkey_patches/net_http.rb
chef-15.16.2-universal-mingw32 lib/chef/monkey_patches/net_http.rb
chef-15.16.2 lib/chef/monkey_patches/net_http.rb
chef-15.15.0-universal-mingw32 lib/chef/monkey_patches/net_http.rb
chef-15.15.0 lib/chef/monkey_patches/net_http.rb
chef-15.14.0 lib/chef/monkey_patches/net_http.rb
chef-15.14.0-universal-mingw32 lib/chef/monkey_patches/net_http.rb
chef-15.13.8 lib/chef/monkey_patches/net_http.rb
chef-15.13.8-universal-mingw32 lib/chef/monkey_patches/net_http.rb
chef-15.12.22 lib/chef/monkey_patches/net_http.rb
chef-15.12.22-universal-mingw32 lib/chef/monkey_patches/net_http.rb
chef-15.11.8 lib/chef/monkey_patches/net_http.rb
chef-15.11.8-universal-mingw32 lib/chef/monkey_patches/net_http.rb
chef-15.11.3 lib/chef/monkey_patches/net_http.rb
chef-15.11.3-universal-mingw32 lib/chef/monkey_patches/net_http.rb