Method: HTTPClient#put
- Defined in:
- lib/httpclient.rb
#put(uri, *args, &block) ⇒ Object
Sends PUT request to the specified URL. See request for arguments.
773 774 775 776 777 778 779 780 |
# File 'lib/httpclient.rb', line 773 def put(uri, *args, &block) if hashy_argument_has_keys(args, :query, :body) new_args = args[0] else new_args = argument_to_hash(args, :body, :header) end request(:put, uri, new_args, &block) end |