Table of Contents

TStaticModule.Create Constructor

Overloads

TStaticModule.Create(string)

Creates a new TStaticModule bound to the specified base URI, with an empty RootDir.

Remarks

The IndexFiles list is initialized with index.html and index.htm, and LastModified is enabled. Set RootDir before serving requests.

Syntax

Unit: Sparkle.Module.Static

constructor TStaticModule.Create(const ABaseUri: string);

Parameters

<-> Parameter Type Description
const ABaseUri string The base URI under which the module handles requests.

See also

TStaticModule.Create(string, string)

Creates a new TStaticModule bound to the specified base URI and serving files from the given root directory.

Syntax

Unit: Sparkle.Module.Static

constructor TStaticModule.Create(const ABaseUri: string; const ARootDir: string);

Parameters

<-> Parameter Type Description
const ABaseUri string The base URI under which the module handles requests.
const ARootDir string The path of the file-system directory used as RootDir.

See also