Method: HTTP::Requestor#head
- Defined in:
- lib/http_requestor.rb
#head(path, data = {}, headers = nil) ⇒ Object
93 94 95 96 97 98 99 100 101 |
# File 'lib/http_requestor.rb', line 93 def head(path,data={},headers=nil) data_to_query(data) if headers == nil response = @http.send_request('HEAD', path, @defaults[:data]) else response = @http.send_request('HEAD', path, @defaults[:data], headers) end response end |