/* * Copyright (c) 2023 Vaughn Nugent * * Library: VNLib * Package: VNLib.Plugins.Essentials * File: IEpProcessingOptions.cs * * IEpProcessingOptions.cs is part of VNLib.Plugins.Essentials which is part of the larger * VNLib collection of libraries and utilities. * * VNLib.Plugins.Essentials is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * VNLib.Plugins.Essentials is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see https://www.gnu.org/licenses/. */ using System; using System.IO; using System.Net; using System.Collections.Generic; using VNLib.Net.Http; #nullable enable namespace VNLib.Plugins.Essentials { /// /// Provides an interface for /// security options /// public interface IEpProcessingOptions { /// /// The name of a default file to search for within a directory if no file is specified (index.html). /// This array should be ordered. /// IReadOnlyCollection DefaultFiles { get; } /// /// File extensions that are denied from being read from the filesystem /// IReadOnlySet ExcludedExtensions { get; } /// /// File attributes that must be matched for the file to be accessed /// FileAttributes AllowedAttributes { get; } /// /// Files that match any attribute flag set will be denied /// FileAttributes DissallowedAttributes { get; } /// /// A table of known downstream servers/ports that can be trusted to proxy connections /// IReadOnlySet DownStreamServers { get; } /// /// A for how long a connection may remain open before all operations are cancelled /// TimeSpan ExecutionTimeout { get; } /// /// HTTP level "hard" 301 redirects /// IReadOnlyDictionary HardRedirects { get; } } }