vendor/plugins/assert_request/lib/assert_request.rb
def assert_protocol(*args)
      safe_assertion do
        ProtocolRules.new.allow(*args).validate(request.protocol)
      end
    end
# Checks that the current request protocol matches one of the given 
# arguments. Ignores all other aspects of the request (in this way it 
# differs from assert_request). This method behaves 
# the same way as RequestRules#protocol. See its description for more 
# detail. 
Checks that the current request protocol matches one of the given
arguments. Ignores all other aspects of the request (in this way it
differs from assert_request). This method behaves
the same way as RequestRules#protocol. See its description for more
detail.
Checks that the current request protocol matches one of the given arguments . Ignores all other aspects of the request ( in this way it differs from assert_request ) . This method behaves the same way as RequestRules#protocol . See its description for more detail .
def assert_protocol(*args)
      safe_assertion do
        ProtocolRules.new.allow(*args).validate(request.protocol)
      end
    end
def assert_protocol ( * args ) safe_assertion do ProtocolRules . new . allow ( * args ) . validate ( request . protocol ) end end
Checks that the current request protocol matches one of the given
arguments.
Checks that the current request protocol matches one of the given arguments .
args