# File lib/chef/rest/rest_request.rb, line 72 def initialize(method, url, req_body, base_headers={}) @method, @url = method, url @request_body = nil @cookies = CookieJar.instance configure_http_client build_headers(base_headers) configure_http_request(req_body) end
# File lib/chef/rest/rest_request.rb, line 97 def call hide_net_http_bug do http_client.request(http_request) do |response| store_cookie(response) yield response if block_given? response end end end
# File lib/chef/rest/rest_request.rb, line 107 def config Chef::Config end
Generated with the Darkfish Rdoc Generator 2.