Method: Shodanz::API::Utils#post
- Defined in:
- lib/shodanz/apis/utils.rb
#post(path, body: nil, **params) ⇒ Object
Perform a direct POST HTTP request to the REST API.
23 24 25 26 27 |
# File 'lib/shodanz/apis/utils.rb', line 23 def post(path, body: nil, **params) return sync_post(path, params: params, body: body) unless Async::Task.current? async_post(path, params: params, body: body) end |