Skip to content

Commit

Permalink
refactor: add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackfaded committed Aug 29, 2024
1 parent 43241b1 commit 9b77662
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/PCP-server-Ruby-SDK/request_header_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ def initialize(config)
@config = config
end

# Generate additional request headers
# @param [String] url
# @param [Hash] request
def generate_additional_request_headers(url, request)
headers = request[:headers] || {}

Expand All @@ -33,6 +36,10 @@ def generate_additional_request_headers(url, request)

private

# Get the authorization header
# @param [String] url
# @param [Hash] request
# @param [Hash] headers
def get_auth_header(url, request, headers)
# 1. method
string_to_sign = "#{request[:method].to_s.upcase}\n"
Expand Down

0 comments on commit 9b77662

Please sign in to comment.