/*
* Copyright (c) 2024 ETH Zürich, IT Services
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
using SafeExamBrowser.Settings.Browser.Filter;
namespace SafeExamBrowser.Browser.Contracts.Filters
{
///
/// Defines the filter for browser requests.
///
public interface IRequestFilter
{
///
/// The default result to be returned by if no rule matches.
///
FilterResult Default { get; set; }
///
/// Loads the given filter rule to be used when processing requests.
///
void Load(IRule rule);
///
/// Filters the given request according to the loaded rules.
///
FilterResult Process(Request request);
}
}