Record TBrookSettings

Hierarchy
Methods
Properties

Unit

Declaration

type TBrookSettings = record

Description

Stores the Brook settings.

Overview

Fields

Public Mapped: Boolean;
Public Charset: ShortString;
Public ContentType: ShortString;
Public Page404: string;
Public Page404File: string;
Public Page500: string;
Public Page500File: string;
Public DirectoryForUploads: string;
Public DeleteUploadedFiles: Boolean;
Public KeepUploadedNames: Boolean;
Public Configuration: string;
Public RootUrl: string;
Public Port: Word;
Public LogActive: Boolean;
Public LogFile: TFileName;
Public OnError: TOnShowRequestException;

Description

Fields

Public Mapped: Boolean;

Enables the mapping of HTTP request methods.

Public Charset: ShortString;

Set the default application Charset.

Public ContentType: ShortString;

Set the default application Content-Type.

Public Page404: string;

Set the 404 HTML page. The string will be sent as is.

Public Page404File: string;

Set the 404 HTML page file. The file content will be sent. This has higher precedence than TBrookSettings.Page404 so when both are set, this will be processed first and only if the file is not found or cannot be read the system will fallback to TBrookSettings.Page404

Public Page500: string;

Set the 500 HTML page. The string will be sent as is.

Public Page500File: string;

Set the 500 HTML page file. The file content will be sent. This has higher precedence than TBrookSettings.Page500 so when both are set, this will be processed first and only if the file is not found or cannot be read the system will fallback to TBrookSettings.Page500

Public DirectoryForUploads: string;

Set the default directory for uploads.

Public DeleteUploadedFiles: Boolean;

Defines if the temporary uploaded files will be deleted.

Public KeepUploadedNames: Boolean;

Keeps the original name of the uploaded files.

Public Configuration: string;

Set a configuration for the application or for its object members.

Public RootUrl: string;

Set the default root URL. This is used by methods such as TBrookAction.UrlFor, TBrookActionHelper.LinkTo, TBrookActionHelper.ButtonTo etc. By default, Brook assumes SCRIPT_NAME as root URL.

Public Port: Word;

Set the default application port.

Public LogActive: Boolean;

Enables the application log.

Public LogFile: TFileName;

Set a name for the application log file.

Public OnError: TOnShowRequestException;

Handles the application exceptions.


Generated by PasDoc 0.15.0.