Class: Request
- Inherits:
-
Object
- Object
- Request
- Defined in:
- lib/utxoracle/request.rb
Class Method Summary collapse
Class Method Details
.send(domain, method = :get, body = '', params = {}, headers = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/utxoracle/request.rb', line 4 def self.send(domain, method = :get, body = '', params = {}, headers = {}) request = Typhoeus::Request.new( domain, method:, body:, params:, headers: ) request.run request.response end |