<< Click to Display Table of Contents >> Navigation: »No topics above this level« Request object |
Request object provide access to HTTP request properties, session, UI classes and other entities.
Method: string - HTTP method (GET, POST, etc.)
Cookies: string - HTTP Cookies field,
ClientIP: string - user IP
UserAgent: string - Agent name
Lang: string - User language (en, etc.)
Host: string - user host
ClientPort: integer - user port
Url: rawbytestring - full URL
InContent: rawbytestring unparsed content
OutContent: string - response content
OutContentBytes: TBytes response binary content
OutContentType: string - response MIME type
OutCustomHeaders: string - additional response headers
ResponseCode: integer - HTTP Response code
Params: TStrings - request partameters (name=value)
Session: TWebUISession - user session
UIClasses: TWebUIClasses;
UIFrames: TWebUIFrames;
FrameTemplates: THtWebUITemplates;
Frame: string - current frame (when rendering frame)
property Param[const AName: string]: string - param from Params property
function PreprocessSQL(const SQL: string): string - fill predefined required fiellds, f.e UserID
function IsPredefinedField(const FieldName: string; out Value: string): boolean;
function ApplyMasterFields(const MasterID: string): boolean;
procedure ApplyCommaValues(const Values: string);
function PageLength: integer - number of parts in page URL (a/b/c)
function Ensure(const PageComponents: array of string): boolean - check if page URL has at least length(PageComponent) parts and raise error in other case. PageComponents contains component name for error.
property Provider: IDMProvider - database provider
property UIProvider: IDMProvider UI database provider
property Dictionaries: TDMDictionaryManager dictionary manager
property Cookie[const Name: string]: string - cookies
property Page[Index: integer]: string - page parts by index
property Server: TWebUIServer