Skip to content

TCustomHTTPModule

Base class for HTTP modules

Declaration

Source position: fphttp.pp line 117

type

  TCustomHTTPModule = class(TDataModule)
  public
    constructor CreateNew; overload;
    destructor Destroy;
    class procedure RegisterModule(const AModuleName: string=''); overload;
    class procedure RegisterModule(const AModuleName: string; 
                              ASkipStreaming: Boolean); overload;
    procedure HandleRequest;
    procedure DoAfterInitModule;
    property Kind: TWebModuleKind; {rwd}
    property BaseURL: string; {rw}
    property AfterInitModule: TInitModuleEvent; {rw}
  end;

Description

TCustomHTTPModule is the base class for HTTP modules that handle web requests. It provides the foundation for web applications with action-based request routing.

Properties

Member Visibility Description
AfterInitModule public Event after module initialization
BaseURL public Base URL for the module
Kind public Module creation mode
See all Properties

Methods

Member Visibility Description
CreateNew public Creates a new HTTP module instance
Destroy public Destroys the HTTP module instance
DoAfterInitModule public Executes after module initialization
HandleRequest public Handles an HTTP request
RegisterModule public Registers the module with the factory
See all Methods