Unit 'fpwebfile' Package
[Overview][Types][Classes][Procedures and functions][Variables][Index] [#fcl-web]

TFPCustomFileModule

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Declaration

Source position: fpwebfile.pp line 38

type TFPCustomFileModule = class(TCustomHTTPModule)

protected

  function GetRequestFileName(); virtual;

  function MapFileName(); virtual;

  function AllowFile(); virtual;

  procedure SendFile(); virtual;

  procedure PrepareResponse(); virtual;

public

  constructor CreateNew(); override; overload;

  procedure HandleRequest(); override;

  property CacheControlMaxAge: Integer; [rw]

public

type

  TPrepareFileResponseCallback = procedure(

  Sender: TObject;

  aResponse: TResponse

) of object;

public

  OnLog: TSimpleFileLog;

  OnPrepareResponse: TPrepareFileResponseCallback;

  class procedure RegisterGlobalResponseHeader();

published

  property CORS: TCORSSupport;

  property Kind: TWebModuleKind;

  property BaseURL: string;

  property AfterInitModule: TInitModuleEvent;

end;

Inheritance

TFPCustomFileModule

|

TCustomHTTPModule

|

TObject


Documentation generated on: 2025-07-25