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); }
internal static bool IsGetOrHeadMethod(string method) => ProtoMethods.IsGet(method) || ProtoMethods.IsHead(method);