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
178 def aws_sigv4_authentication(**options)
179   with(sigv4_signer: Signer.new(**options))
180 end
build_request(*)
[show source]
    # File lib/httpx/plugins/aws_sigv4.rb
182 def build_request(*)
183   request = super
184 
185   return request if request.headers.key?("authorization")
186 
187   signer = request.options.sigv4_signer
188 
189   return request unless signer
190 
191   signer.sign!(request)
192 
193   request
194 end