class Tire::HTTP::Client::Faraday

Constants

DEFAULT_MIDDLEWARE

Default middleware stack.

Attributes

faraday_middleware[RW]

A customized stack of Faraday middleware that will be used to make each request.

Public Class Methods

__host_unreachable_exceptions() click to toggle source
# File lib/tire/http/clients/faraday.rb, line 61
def __host_unreachable_exceptions
  [::Faraday::Error::ConnectionFailed, ::Faraday::Error::TimeoutError]
end
delete(url, data = nil) click to toggle source
# File lib/tire/http/clients/faraday.rb, line 53
def delete(url, data = nil)
  request(:delete, url, data)
end
get(url, data = nil) click to toggle source
# File lib/tire/http/clients/faraday.rb, line 41
def get(url, data = nil)
  request(:get, url, data)
end
head(url) click to toggle source
# File lib/tire/http/clients/faraday.rb, line 57
def head(url)
  request(:head, url)
end
post(url, data) click to toggle source
# File lib/tire/http/clients/faraday.rb, line 45
def post(url, data)
  request(:post, url, data)
end
put(url, data) click to toggle source
# File lib/tire/http/clients/faraday.rb, line 49
def put(url, data)
  request(:put, url, data)
end