Class: Faraday::Request::AuthHMAC::CanonicalString

Inherits:
AuthHMAC::CanonicalString
  • Object
show all
Defined in:
lib/faraday/auth-hmac.rb

Overview

Modified CanonicalString to know how to pull from the Faraday-specific env hash.

Instance Method Summary collapse

Instance Method Details

#headers(request) ⇒ Object



63
64
65
# File 'lib/faraday/auth-hmac.rb', line 63

def headers(request)
  request[:request_headers]
end

#request_body(request) ⇒ Object



50
51
52
# File 'lib/faraday/auth-hmac.rb', line 50

def request_body(request)
  request[:body].to_s
end

#request_method(request) ⇒ Object



46
47
48
# File 'lib/faraday/auth-hmac.rb', line 46

def request_method(request)
  request[:method].to_s.upcase
end

#request_path(request, authenticate_referrer) ⇒ Object



54
55
56
# File 'lib/faraday/auth-hmac.rb', line 54

def request_path(request)
  request[:url].path
end