Last active
March 31, 2020 04:58
-
-
Save agungsetiawan/071332dacc06b6291bcb9b20d6a52ea1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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