namespace SimpleHttpServer; public class SimpleHttpServerConfiguration { public delegate void CustomLogMessageHandler(LogOutputTopic topic, string message, LogOutputLevel logLevel); /// /// If set to true, log messages will not be printed to the console, and instead will only be outputted by calling . /// If set to false, the aforementioned delegate will still be invoked, but messages will still be printed to the console. /// Setting this to false and to null will effectively disable log output completely. /// public bool DisableLogMessagePrinting { get; init; } = false; /// /// See description of /// public CustomLogMessageHandler? LogMessageHandler { get; init; } = null; /// /// If set to true, paths ending with / are identical to paths without said trailing slash. E.g. /index is then the same as /index/ /// public bool TrimTrailingSlash { get; init; } = true; public SimpleHttpServerConfiguration() { } }