lib/rack_request_blocker/middleware.rb
# Public: Calls the middleware.
#
# env - A Hash of environment variables.
#
# Returns a Rack response, a three-element array representing the status
# code, headers, and body of the response.
Calls the middleware.
env - A Hash of environment variables.

Returns a Rack response, a three-element array representing the status
code, headers, and body of the response.
Calls the middleware . env - A Hash of environment variables . Returns a Rack response a three - element array representing the status code headers and body of the response .
def call(env)
      increment_active_requests
      if block_requests?
        block_request
      else
        @app.call(env)
      end
    ensure
      decrement_active_requests
    end
def call ( env ) increment_active_requests if block_requests? block_request else @app . call ( env ) end ensure decrement_active_requests end
Public: Calls the middleware.
Public : Calls the middleware .
env
<not_specific>