Class TRALRequest
Unit
Declaration
type TRALRequest = class(TRALHTTPHeaderInfo)
Description
Class that stores everything regarding REQUEST data
Hierarchy
- TObject
- TRALHTTPHeaderInfo
- TRALRequest
Overview
Methods
![]() |
constructor Create(AOwner: TObject); override; |
![]() |
destructor Destroy; override; |
![]() |
function AddBody(const AText: StringRAL; const AContextType: StringRAL = rctTEXTPLAIN): TRALRequest; reintroduce; |
![]() |
function AddCookie(const AName: StringRAL; const AValue: StringRAL): TRALRequest; reintroduce; |
![]() |
function AddField(const AName: StringRAL; const AValue: StringRAL): TRALRequest; reintroduce; |
![]() |
function AddFile(AStream: TStream; const AFileName: StringRAL = ''): TRALRequest; reintroduce; overload; |
![]() |
function AddFile(const AFileName: StringRAL): TRALRequest; reintroduce; overload; |
![]() |
function AddHeader(const AName: StringRAL; const AValue: StringRAL): TRALRequest; reintroduce; |
![]() |
function GetRequestEncStream(const AEncode: boolean = true): TStream; virtual; abstract; |
![]() |
function GetRequestEncText(const AEncode: boolean = true): StringRAL; virtual; abstract; |
![]() |
function GetRequestStream: TStream; |
![]() |
function GetRequestText: StringRAL; |
![]() |
function GetURL: StringRAL; |
![]() |
procedure Clone(ASource: TRALRequest); reintroduce; |
![]() |
procedure SetQuery(const AValue: StringRAL); |
![]() |
procedure SetRequestStream(const AValue: TStream); virtual; abstract; |
![]() |
procedure SetRequestText(const AValue: StringRAL); virtual; abstract; |
Properties
![]() |
property Authorization: TRALAuthorization read FAuthorization write FAuthorization; |
![]() |
property ClientInfo: TRALClientInfo read FClientInfo write FClientInfo; |
![]() |
property ContentSize: Int64RAL read FContentSize write FContentSize; |
![]() |
property Host: StringRAL read FHost write FHost; |
![]() |
property HttpVersion: StringRAL read FHttpVersion write FHttpVersion; |
![]() |
property Method: TRALMethod read FMethod write FMethod; |
![]() |
property Protocol: StringRAL read FProtocol write FProtocol; |
![]() |
property Query: StringRAL read FQuery write SetQuery; |
![]() |
property RequestStream: TStream read GetRequestStream write SetRequestStream; |
![]() |
property RequestText: StringRAL read GetRequestText write SetRequestText; |
![]() |
property URL: StringRAL read GetURL; |
Description
Methods
![]() |
constructor Create(AOwner: TObject); override; |
![]() |
destructor Destroy; override; |
![]() |
function AddBody(const AText: StringRAL; const AContextType: StringRAL = rctTEXTPLAIN): TRALRequest; reintroduce; |
|
Adds an UTF8 String to the body of the request. | |
![]() |
function AddCookie(const AName: StringRAL; const AValue: StringRAL): TRALRequest; reintroduce; |
|
Adds a string cookie to the body of the request. | |
![]() |
function AddField(const AName: StringRAL; const AValue: StringRAL): TRALRequest; reintroduce; |
|
Adds a string param with the "Field" kind to the request. | |
![]() |
function AddFile(AStream: TStream; const AFileName: StringRAL = ''): TRALRequest; reintroduce; overload; |
|
Adds a custom file to the body of the request from the given AStream. | |
![]() |
function AddFile(const AFileName: StringRAL): TRALRequest; reintroduce; overload; |
|
Adds a file to the body of the request based on the given AFileName. | |
![]() |
function AddHeader(const AName: StringRAL; const AValue: StringRAL): TRALRequest; reintroduce; |
|
Adds an UTF8 String to the header of the request. | |
![]() |
function GetRequestEncStream(const AEncode: boolean = true): TStream; virtual; abstract; |
|
Returns the request data in TStream format | |
![]() |
function GetRequestEncText(const AEncode: boolean = true): StringRAL; virtual; abstract; |
|
Returns the request data in UTF8String format | |
![]() |
function GetRequestStream: TStream; |
![]() |
function GetRequestText: StringRAL; |
![]() |
function GetURL: StringRAL; |
|
Grabs the full URL of the request | |
![]() |
procedure Clone(ASource: TRALRequest); reintroduce; |
![]() |
procedure SetQuery(const AValue: StringRAL); |
|
Grabs only the params after the "?" key and records it in FQuery attribute | |
![]() |
procedure SetRequestStream(const AValue: TStream); virtual; abstract; |
![]() |
procedure SetRequestText(const AValue: StringRAL); virtual; abstract; |
Properties
![]() |
property Authorization: TRALAuthorization read FAuthorization write FAuthorization; |
![]() |
property ClientInfo: TRALClientInfo read FClientInfo write FClientInfo; |
![]() |
property ContentSize: Int64RAL read FContentSize write FContentSize; |
![]() |
property Host: StringRAL read FHost write FHost; |
![]() |
property HttpVersion: StringRAL read FHttpVersion write FHttpVersion; |
![]() |
property Method: TRALMethod read FMethod write FMethod; |
![]() |
property Protocol: StringRAL read FProtocol write FProtocol; |
![]() |
property Query: StringRAL read FQuery write SetQuery; |
![]() |
property RequestStream: TStream read GetRequestStream write SetRequestStream; |
![]() |
property RequestText: StringRAL read GetRequestText write SetRequestText; |
![]() |
property URL: StringRAL read GetURL; |
GitHub Repository
Generated by PasDoc 0.16.0.


