mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
Update post method documentation examples
This behavior appears to have changed with
49956a707e
, but the documentation was not
updated at that time.
This commit is contained in:
parent
2315322422
commit
bf028c72a4
1 changed files with 1 additions and 1 deletions
|
@ -496,7 +496,7 @@ module HTTParty
|
|||
# Foo.post('http://foo.com/resources', body: {bar: 'baz'})
|
||||
#
|
||||
# # Simple post with full url using :query option,
|
||||
# # which gets set as form data on the request.
|
||||
# # which appends the parameters to the URI.
|
||||
# Foo.post('http://foo.com/resources', query: {bar: 'baz'})
|
||||
def post(path, options = {}, &block)
|
||||
perform_request Net::HTTP::Post, path, options, &block
|
||||
|
|
Loading…
Reference in a new issue