Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added documentation for head.

  • Loading branch information...
commit fad778e9ca9a600edd0728225e58347a44bacd23 1 parent 834d22f
@FiXato authored
Showing with 4 additions and 1 deletion.
  1. +1 −1  bin/restclient
  2. +3 −0  lib/rest_client.rb
View
2  bin/restclient
@@ -7,7 +7,7 @@ require "yaml"
def usage(why = nil)
puts "failed for reason: #{why}" if why
- puts "usage: restclient [get|put|post|delete] url|name [username] [password]"
+ puts "usage: restclient [get|put|post|delete|head] url|name [username] [password]"
puts " The verb is optional, if you leave it off you'll get an interactive shell."
puts " put and post both take the input body on stdin."
exit(1)
View
3  lib/rest_client.rb
@@ -29,6 +29,9 @@
# # DELETE
# RestClient.delete 'http://example.com/resource'
#
+# # HEAD
+# RestClient.head 'http://example.com/resource'
+#
# To use with a proxy, just set RestClient.proxy to the proper http proxy:
#
# RestClient.proxy = "http://proxy.example.com/"
Please sign in to comment.
Something went wrong with that request. Please try again.