summaryrefslogtreecommitdiff
path: root/lib/chef/http/simple.rb
blob: 8519554f2b86d0d54bceb6d61de3d1ebf8f4ae3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'chef/http'
require 'chef/http/authenticator'
require 'chef/http/decompressor'
require 'chef/http/cookie_manager'
require 'chef/http/validate_content_length'

class Chef
  class HTTP

    class Simple < HTTP

      use Decompressor
      use CookieManager

      # ValidateContentLength should come after Decompressor
      # because the order of middlewares is reversed when handling
      # responses.
      use ValidateContentLength

    end
  end
end