Module: Http
- Defined in:
- app/lib/http.rb
Overview
Wrapper around Faraday that provides some defaults.
Class Method Summary collapse
-
.json ⇒ Farady::Connection
Create a Faraday::Connection for sending/receiving JSON.
Class Method Details
.json ⇒ Farady::Connection
Create a Faraday::Connection for sending/receiving JSON.
10 11 12 13 14 15 16 17 18 |
# File 'app/lib/http.rb', line 10 def self.json Faraday.new do |conn| conn.request :json conn.request :retry conn.response :follow_redirects conn.response :json end end |