Method: Auth0::Mixins::HTTPProxy#call
- Defined in:
- lib/auth0/mixins/httpproxy.rb
#call(method, url, timeout, headers, body = nil) ⇒ Object
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/auth0/mixins/httpproxy.rb', line 110 def call(method, url, timeout, headers, body = nil) RestClient::Request.execute( method: method, url: url, timeout: timeout, headers: headers, payload: body ) rescue RestClient::Exception => e case e when RestClient::RequestTimeout raise Auth0::RequestTimeout.new(e.) else return e.response end end |