module HTTPX::Plugins::AWSSigV4::InstanceMethods

  1. lib/httpx/plugins/aws_sigv4.rb

Methods

Public Instance

  1. aws_sigv4_authentication
  2. build_request

Public Instance methods

aws_sigv4_authentication(**options)
[show source]
    # File lib/httpx/plugins/aws_sigv4.rb
163 def aws_sigv4_authentication(**options)
164   with(sigv4_signer: Signer.new(**options))
165 end
build_request(*)
[show source]
    # File lib/httpx/plugins/aws_sigv4.rb
167 def build_request(*)
168   request = super
169 
170   return request if request.headers.key?("authorization")
171 
172   signer = request.options.sigv4_signer
173 
174   return request unless signer
175 
176   signer.sign!(request)
177 
178   request
179 end