Sha256: 878f7e64ecaf81c5a5c507566b1c5b35e2e7d7f8f4a7aa1634be66ee76797cd8

Contents?: true

Size: 583 Bytes

Versions: 26

Compression:

Stored size: 583 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

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

26 entries across 26 versions & 1 rubygems

Version Path
chef-16.4.41 lib/chef/monkey_patches/net_http.rb
chef-16.4.41-universal-mingw32 lib/chef/monkey_patches/net_http.rb
chef-16.4.38 lib/chef/monkey_patches/net_http.rb
chef-16.4.38-universal-mingw32 lib/chef/monkey_patches/net_http.rb
chef-16.4.35 lib/chef/monkey_patches/net_http.rb
chef-16.4.35-universal-mingw32 lib/chef/monkey_patches/net_http.rb
chef-16.3.45 lib/chef/monkey_patches/net_http.rb
chef-16.3.45-universal-mingw32 lib/chef/monkey_patches/net_http.rb
chef-16.3.38 lib/chef/monkey_patches/net_http.rb
chef-16.3.38-universal-mingw32 lib/chef/monkey_patches/net_http.rb
chef-16.2.73 lib/chef/monkey_patches/net_http.rb
chef-16.2.73-universal-mingw32 lib/chef/monkey_patches/net_http.rb
chef-16.2.50 lib/chef/monkey_patches/net_http.rb
chef-16.2.50-universal-mingw32 lib/chef/monkey_patches/net_http.rb
chef-16.2.44 lib/chef/monkey_patches/net_http.rb
chef-16.2.44-universal-mingw32 lib/chef/monkey_patches/net_http.rb
chef-16.1.16 lib/chef/monkey_patches/net_http.rb
chef-16.1.16-universal-mingw32 lib/chef/monkey_patches/net_http.rb
chef-16.1.0 lib/chef/monkey_patches/net_http.rb
chef-16.1.0-universal-mingw32 lib/chef/monkey_patches/net_http.rb