Method: Puppet::Network::HTTP::Connection#request_head
- Defined in:
- lib/puppet/network/http/connection.rb
#request_head(*args) {|ruby_response| ... } ⇒ Object
186 187 188 189 190 191 192 193 194 195 196 197 198 |
# File 'lib/puppet/network/http/connection.rb', line 186 def request_head(*args, &block) path, headers = *args headers ||= {} = { ssl_context: resolve_ssl_context, redirect_limit: @redirect_limit } response = @client.head(to_url(path), headers: headers, options: ) ruby_response = to_ruby_response(response) yield ruby_response if block_given? ruby_response end |