Ejemplo n.º 1
0
        public bool ValidateNoEndpoint() => _context.GetEndpoint() == null; // Return true because we only want to run if there is no endpoint.

        public bool ValidateMethod()
        {
            _method = _request.Method;
            _isGet  = ProtoMethods.IsGet(_method);
            _isHead = ProtoMethods.IsHead(_method);
            return(_isGet || _isHead);
        }
Ejemplo n.º 2
0
 internal static bool IsGetOrHeadMethod(string method) => ProtoMethods.IsGet(method) || ProtoMethods.IsHead(method);