Skip to content

Instantly share code, notes, and snippets.

@agungsetiawan
Last active March 31, 2020 04:58
Show Gist options
  • Save agungsetiawan/071332dacc06b6291bcb9b20d6a52ea1 to your computer and use it in GitHub Desktop.
Save agungsetiawan/071332dacc06b6291bcb9b20d6a52ea1 to your computer and use it in GitHub Desktop.
def call
# code omitted
res = Connection.internal_api.get do |req|
req.url "#{ENV['TRANSACTION_HOST']}/transactions?user_id=#{user_id}"
req.headers['UserRole'] = 'new_value'
req.headers['OtherHeader'] = 'other_value'
end
# code omitted
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment