Class: ActiveResource::Connection
- Inherits:
-
Object
- Object
- ActiveResource::Connection
- Defined in:
- lib/active_resource_patches.rb
Instance Method Summary collapse
-
#head(path, headers = {}) ⇒ Object
Execute a HEAD request.
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 |