Class: ActiveResource::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/active_resource_patches.rb

Instance Method Summary collapse

Instance Method Details

#head(path, headers = {}) ⇒ Object

Execute a HEAD request. Used to obtain meta-information about resources, such as whether they exist and their size (via response headers).



7
8
9
# File 'lib/active_resource_patches.rb', line 7

def head(path, headers = {})
  request(:head, path, build_request_headers(headers, :head))
end