Module: TypeformData::Requestor
- Defined in:
- lib/typeform_data/requestor.rb
Constant Summary collapse
- RETRY_EXCEPTIONS =
[ # We wouldn't ordinarily retry in this case, but Typeform appears to have transient issues # with their SSL. OpenSSL::SSL::SSLError, Errno::ECONNREFUSED, TypeformData::TransientResponseError, # Sometimes it takes a while before Typeform's state becomes consistent. In particular, this # can be an issue if you receive a webhook for a form response, then immediately request that # response from Typeform's servers. TypeformData::InvalidEndpointOrMissingResource, ].freeze
- TRANSIENT_RESPONSE_CLASSES =
[ Net::HTTPServiceUnavailable, Net::HTTPTooManyRequests, Net::HTTPBadGateway, Net::HTTPGatewayTimeOut, Net::HTTPInternalServerError, ].freeze
Class Method Summary collapse
Class Method Details
.get(config, endpoint, params = nil) ⇒ Object
29 30 31 |
# File 'lib/typeform_data/requestor.rb', line 29 def self.get(config, endpoint, params = nil) request(config, Net::HTTP::Get, request_path(config, endpoint), params) end |