class Gapic::Rest::FaradayMiddleware::GoogleAuthorization

def call env

Parameters:
  • env (Faraday::Env) --

Other tags:
    Private: -
def call env
  unless @updater_proc.is_a? Symbol
    auth_hash = @updater_proc.call({})
    env.request_headers["Authorization"] = auth_hash[:authorization]
  end
  @app.call env
end