class TargetIO::HTTP
Public Class Methods
new(url, http_client_opts = {})
click to toggle source
# File lib/chef/target_io/http.rb, line 14 def initialize(url, http_client_opts = {}) if ::ChefConfig::Config.target_mode? @http_class = TargetIO::TrainCompat::HTTP.new(url, http_client_opts) else @http_class = Chef::HTTP::Simple.new(url, http_client_opts) end end