Provides features to handle HTTP requests and responses.
 |
constructor Create; overload; virtual; |
 |
constructor Create(ARequest: TBrookRequest; AResponse: TBrookResponse); overload; virtual; |
 |
destructor Destroy; override; |
 |
class procedure Register(const APattern: string; const ADefault: Boolean = False); overload; |
 |
class procedure Register(const APattern: string; const AMethod: TBrookRequestMethod; const ADefault: Boolean = False); overload; |
 |
class function GetPath: string; |
 |
procedure DoFillVariables(const ANames, AValues: TBrookArrayOfString); virtual; |
 |
procedure DoFillingVariables(const AIndex: Integer; const ANames, AValues: TBrookArrayOfString); virtual; |
 |
procedure SetCookie(const AName, AValue: string; const AExpires: TDateTime = NullDate; const APath: string = ES; const ADomain: string = ES; const ASecure: Boolean = False; const AHttpOnly: Boolean = False); |
 |
function GetCookie(const AName: string): string; |
 |
procedure DeleteCookie(const AName: string; const APath: string = ES; const ADomain: string = ES); |
 |
procedure DoRequest(ARequest: TBrookRequest; AResponse: TBrookResponse); virtual; |
 |
procedure Request(ARequest: TBrookRequest; AResponse: TBrookResponse); virtual; |
 |
procedure GetFields(AObject: TObject); |
 |
procedure GetParams(AObject: TObject); |
 |
procedure GetVariables(AObject: TObject); |
 |
function UrlFor(AActionClass: TBrookActionClass): string; overload; |
 |
function UrlFor(AActionClass: TBrookActionClass; const AParams: array of string): string; overload; |
 |
function UrlFor(AClassName: string; const AParams: array of string): string; overload; |
 |
function UrlFor(AClassName: string): string; overload; |
 |
procedure Get; virtual; |
 |
procedure Post; virtual; |
 |
procedure Put; virtual; |
 |
procedure Patch; virtual; |
 |
procedure Delete; virtual; |
 |
procedure Head; virtual; |
 |
procedure Options; virtual; |
 |
procedure Redirect(const AUrl: string); overload; |
 |
procedure Redirect(const AUrl: string; const AStatusCode: Word); overload; |
 |
procedure Redirect(const AUrl: string; const AUseRootUrl: Boolean); overload; |
 |
procedure Redirect(const AUrl: string; const AUseRootUrl: Boolean; const AStatusCode: Word); overload; |
 |
procedure Error(const AMsg: string); overload; |
 |
procedure Error(const AMsg: string; const AArgs: array of const); overload; |
 |
procedure Stop(const AMsg: string); overload; |
 |
procedure Stop(const AMsg: string; const AArgs: array of const); overload; |
 |
procedure Render(const AFileName: TFileName); overload; virtual; |
 |
procedure Render(const AFileName: TFileName; const AArgs: array of const); overload; virtual; |
 |
procedure Clear; |
 |
function Exists(const AName: string): Boolean; |
 |
procedure Write(const AString: string); overload; |
 |
procedure Write(const ABoolean: Boolean); overload; |
 |
procedure Write(const AInteger: Integer); overload; |
 |
procedure Write(const AFloat: Double); overload; |
 |
procedure Write(AObject: TObject); overload; |
 |
procedure Write(AObject: TObject; const AIgnoredProps: TStrings); overload; |
 |
procedure Write(AObject: TObject; const AIgnoredProps: array of string); overload; |
 |
procedure Write(AStream: TStream); overload; |
 |
procedure Write(const AFmt: string; const AArgs: array of const); overload; |