def on_request(options = {}, method = :push, &block)
      raise BlockNotGiven unless block_given?
      _on_request.send(method, [block, options])
    end
def on_request(options = {}, method = :push, &block)
      raise BlockNotGiven unless block_given?
      _on_request.send(method, [block, options])
    end
A callback that runs on each request, just after the proxy is initialized

 Parameters:
 <block> A block to contain logic for the callback
   Block Parameters: |proxy|
     proxy - The warden proxy object for the request

 Example:
   user = "A User"
   Warden::Manager.on_request do |proxy|
     proxy.set_user = user
   end

 :api: public