Class: Azure::Core::Http::SignerFilter

Inherits:
HttpFilter
  • Object
show all
Defined in:
lib/azure/storage/core/http/signer_filter.rb

Overview

A HttpFilter implementation that creates a authorization signature which is added to the request headers

Instance Method Summary collapse

Constructor Details

#initialize(signer) ⇒ SignerFilter

Returns a new instance of SignerFilter


22
23
24
# File 'lib/azure/storage/core/http/signer_filter.rb', line 22

def initialize(signer)
  @signer = signer
end

Instance Method Details

#call(req, _next) ⇒ Object


26
27
28
29
# File 'lib/azure/storage/core/http/signer_filter.rb', line 26

def call(req, _next)
  @signer.sign_request(req)
  _next.call
end