Class TBrookHTTPRequest
Unit
Declaration
type TBrookHTTPRequest = class(TBrookHandledPersistent)
Description
Class which provides headers, cookies, query-string, fields, payloads, uploads and other data sent by the client.
Hierarchy
- TObject
- TPersistent
- TBrookHandledPersistent
- TBrookHTTPRequest
Overview
Methods
![]() |
constructor Create(AHandle: Pointer); virtual; |
![]() |
destructor Destroy; override; |
![]() |
function IsPost: Boolean; inline; |
![]() |
function IsFavicon: Boolean; inline; |
![]() |
function IsSecure: Boolean; inline; |
![]() |
function IsCachable: Boolean; inline; |
![]() |
function IsXhr: Boolean; inline; |
![]() |
procedure Isolate(AProc: TBrookHTTPRequestIsolatedProc; AUserData: Pointer = nil); virtual; |
Properties
![]() |
property ServerHandle: Pointer read FServerHandle; |
![]() |
property Headers: TBrookStringMap read FHeaders; |
![]() |
property Cookies: TBrookStringMap read FCookies; |
![]() |
property Params: TBrookStringMap read FParams; |
![]() |
property Fields: TBrookStringMap read FFields; |
![]() |
property Payload: TBrookString read FPayload; |
![]() |
property Version: string read FVersion; |
![]() |
property Method: string read FMethod; |
![]() |
property Path: string read FPath; |
![]() |
property IP: string read GetIP; |
![]() |
property ContentType: string read GetContentType; |
![]() |
property UserAgent: string read GetUserAgent; |
![]() |
property Referer: string read GetReferer; |
![]() |
property Paths: TArray<string> read GetPaths; |
![]() |
property IsIsolated: Boolean read FIsIsolated; |
![]() |
property IsUploading: Boolean read FIsUploading; |
![]() |
property Uploads: TBrookHTTPUploads read FUploads; |
![]() |
property Files: TBrookHTTPUploads read FUploads; |
![]() |
property Client: Pointer read FClient; |
![]() |
property TLSSession: Pointer read FTLSSession; |
![]() |
property UserData: Pointer read GetUserData write SetUserData; |
Description
Methods
![]() |
constructor Create(AHandle: Pointer); virtual; |
Creates an instance of Parameters
|
![]() |
destructor Destroy; override; |
Frees an instance of |
![]() |
function IsPost: Boolean; inline; |
Checks if the HTTP method is |
![]() |
function IsFavicon: Boolean; inline; |
Checks if current path refers to |
![]() |
function IsSecure: Boolean; inline; |
Checks if request contains a valid TLS session. |
![]() |
function IsCachable: Boolean; inline; |
Checks if the HTTP method is |
![]() |
function IsXhr: Boolean; inline; |
Checks if the request was done by an Ajax client. |
![]() |
procedure Isolate(AProc: TBrookHTTPRequestIsolatedProc; AUserData: Pointer = nil); virtual; |
Isolates a request from the main event loop to an own dedicated thread, bringing it back when the request finishes. Parameters
|
Properties
![]() |
property ServerHandle: Pointer read FServerHandle; |
Reference to the server instance. |
![]() |
property Headers: TBrookStringMap read FHeaders; |
Hash table containing the request |
![]() |
property Cookies: TBrookStringMap read FCookies; |
Hash table containing the request |
![]() |
property Params: TBrookStringMap read FParams; |
Hash table containing the request parameters (query-string). |
![]() |
property Fields: TBrookStringMap read FFields; |
Hash table containing the request |
![]() |
property Payload: TBrookString read FPayload; |
String buffer containing the request |
![]() |
property Version: string read FVersion; |
Contains the requested HTTP |
![]() |
property Method: string read FMethod; |
Contains the requested HTTP |
![]() |
property Path: string read FPath; |
Contains the |
![]() |
property IP: string read GetIP; |
Contains the client |
![]() |
property ContentType: string read GetContentType; |
Contains the requested Content-Type. |
![]() |
property UserAgent: string read GetUserAgent; |
Contains the client User-Agent. |
![]() |
property Referer: string read GetReferer; |
Where the request originated. |
![]() |
property Paths: TArray<string> read GetPaths; |
Contains the levels of the path component. |
![]() |
property IsIsolated: Boolean read FIsIsolated; |
Checks if the request was isolated from the main event loop to an own dedicated thread. |
![]() |
property IsUploading: Boolean read FIsUploading; |
Checks if the client is uploading data. |
![]() |
property Uploads: TBrookHTTPUploads read FUploads; |
List of the uploaded files. |
![]() |
property Files: TBrookHTTPUploads read FUploads; |
List of the uploaded |
![]() |
property Client: Pointer read FClient; |
Contains the socket handle of the |
![]() |
property TLSSession: Pointer read FTLSSession; |
Contains the TLS session handle (GnuTLS). |
![]() |
property UserData: Pointer read GetUserData write SetUserData; |
User-defined data to be stored temporally in the request object. |
Generated by PasDoc 0.16.0.