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
181 182 183 |
# File 'lib/httpx/plugins/aws_sigv4.rb', line 181 def aws_sigv4_authentication(**) with(sigv4_signer: Signer.new(**)) end |
#build_request ⇒ Object
185 186 187 188 189 190 191 192 193 194 195 196 197 |
# File 'lib/httpx/plugins/aws_sigv4.rb', line 185 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 |