Class: Faraday::Request::HMACAuthentication::CanonicalString

Inherits:
Captivus::AuthHMAC::CanonicalString
  • Object
show all
Defined in:
lib/faraday/request/hmac_authentication.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



34
35
36
# File 'lib/faraday/request/hmac_authentication.rb', line 34

def headers(request)
  request[:request_headers]
end

#request_body(request) ⇒ Object



26
27
28
# File 'lib/faraday/request/hmac_authentication.rb', line 26

def request_body(request)
  request[:body]
end

#request_method(request) ⇒ Object



22
23
24
# File 'lib/faraday/request/hmac_authentication.rb', line 22

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

#request_path(request) ⇒ Object



30
31
32
# File 'lib/faraday/request/hmac_authentication.rb', line 30

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