Module: HTTPX::Plugins::AWSSigV4::InstanceMethods
- Defined in:
- lib/httpx/plugins/aws_sigv4.rb
Instance Method Summary collapse
Instance Method Details
#aws_sigv4_authentication(**options) ⇒ Object
178 179 180 |
# File 'lib/httpx/plugins/aws_sigv4.rb', line 178 def aws_sigv4_authentication(**) with(sigv4_signer: Signer.new(**)) end |
#build_request ⇒ Object
182 183 184 185 186 187 188 189 190 191 192 193 194 |
# File 'lib/httpx/plugins/aws_sigv4.rb', line 182 def build_request(*) request = super return request if request.headers.key?("authorization") signer = request..sigv4_signer return request unless signer signer.sign!(request) request end |