diff options
Diffstat (limited to 'activeresource/lib/active_resource/connection.rb')
-rw-r--r-- | activeresource/lib/active_resource/connection.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activeresource/lib/active_resource/connection.rb b/activeresource/lib/active_resource/connection.rb index 2bf83b1615..e4e6da50c9 100644 --- a/activeresource/lib/active_resource/connection.rb +++ b/activeresource/lib/active_resource/connection.rb @@ -101,6 +101,12 @@ module ActiveResource request(:post, path, body.to_s, build_request_headers(headers)) end + # Execute a HEAD request. + # Used to ... + def head(path, headers= {}) + request(:head, path, build_request_headers(headers)) + end + private # Makes request to remote service. |