Table of Contents

TSocketHttpServer.AddModule Method

Registers an HTTP server module to process the requests addressed to its base URI.

Remarks

This is a shortcut for adding the module to the Dispatcher. The scheme of the module base URI selects the protocol of its port: modules registered with an https base URI are served over TLS using the settings in Ssl.

Syntax

Unit: Sparkle.Socket.Server

procedure TSocketHttpServer.AddModule(AModule: THttpServerModule);

Parameters

<-> Parameter Type Description
AModule THttpServerModule The module to register. The server takes ownership of it.

See also