# File lib/chef/http/http_request.rb, line 75 def initialize(method, url, req_body, base_headers={}) @method, @url = method, url @request_body = nil build_headers(base_headers) configure_http_request(req_body) end
DEPRECATED. Call request on an HTTP client object instead.
# File lib/chef/http/http_request.rb, line 103 def call hide_net_http_bug do http_client.request(http_request) do |response| yield response if block_given? response end end end
# File lib/chef/http/http_request.rb, line 112 def config Chef::Config end
# File lib/chef/http/http_request.rb, line 82 def host @url.hostname end
# File lib/chef/http/http_request.rb, line 98 def path @url.path.empty? ? SLASH : @url.path end
Generated with the Darkfish Rdoc Generator 2.