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
160 161 162 |
# File 'lib/httpx/plugins/aws_sigv4.rb', line 160 def aws_sigv4_authentication(**) with(sigv4_signer: Signer.new(**)) end |
#build_request(_) ⇒ Object
164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/httpx/plugins/aws_sigv4.rb', line 164 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 |