module JSON::JWK::Set::Fetcher

def self.http_client

def self.http_client
  Faraday.new(headers: {user_agent: "JSON::JWK::Set::Fetcher #{VERSION}"}) do |faraday|
    faraday.response :raise_error
    faraday.response :follow_redirects
    faraday.response :logger, JSON::JWK::Set::Fetcher.logger if debugging?
    faraday.adapter Faraday.default_adapter
    http_config.try(:call, faraday)
  end
end