class HttpObservatory::Connection

See github.com/mozilla/http-observatory/blob/master/httpobs/docs/api.md

Constants

BASE

Public Class Methods

api() click to toggle source
# File lib/http_observatory/connection.rb, line 11
def self.api
  Faraday.new(url: BASE) do |faraday|
    faraday.response :logger
    faraday.adapter Faraday.default_adapter
    faraday.headers['Content-Type'] = 'application/json'
  end
end