Method: Azure::Core::Http::HttpFilter#call

Defined in:
lib/azure/core/http/http_filter.rb

#call(request, _next) ⇒ Object

Executes the filter

request - HttpRequest. The request _next - An object that implements .call (no params)

NOTE: _next is a either a subsequent HttpFilter wrapped in a closure, or the HttpRequest object’s call method. Either way, it must have it’s .call method executed within each filter to

complete the pipeline. _next.call should return an HttpResponse

and so should this Filter.



47
48
49
# File 'lib/azure/core/http/http_filter.rb', line 47

def call(request, _next)
  @block ? @block.call(request, _next) : _next.call
end