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



58
59
60
# File 'lib/faraday/auth-hmac.rb', line 58

def headers(request)
  request[:request_headers]
end

#request_body(request) ⇒ Object



48
49
50
# File 'lib/faraday/auth-hmac.rb', line 48

def request_body(request)
  request[:body]
end

#request_method(request) ⇒ Object



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

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

#request_path(request, authenticate_referrer) ⇒ Object



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

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