Method: Shodanz::API::Utils#get
- Defined in:
- lib/shodanz/apis/utils.rb
#get(path, **params) ⇒ Object
Perform a direct GET HTTP request to the REST API.
16 17 18 19 20 |
# File 'lib/shodanz/apis/utils.rb', line 16 def get(path, **params) return sync_get(path, **params) unless Async::Task.current? async_get(path, **params) end |