Class TRALMultipartDecoder
Unit
Declaration
type TRALMultipartDecoder = class(TObject)
Description
Base class for the object that will parse Multipart from the HTTP Request
Hierarchy
- TObject
- TRALMultipartDecoder
Overview
Methods
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
function FormDataCount: IntegerRAL; |
![]() |
function BurnBuffer: PByte; |
![]() |
function GetFormData(idx: Integer): TRALMultipartFormData; |
![]() |
function ProcessLine: PByte; |
![]() |
function ResetBuffer: PByte; |
![]() |
procedure ProcessMultiPart(AStream: TStream); overload; |
![]() |
procedure ProcessMultiPart(const AString: StringRAL); overload; |
![]() |
procedure ClearItems; |
![]() |
procedure FinalizeItem; |
![]() |
procedure ProcessBuffer(AInput: PByte; AInputLen: IntegerRAL); |
![]() |
procedure SetContentType(AValue: StringRAL); |
Properties
![]() |
property Boundary: StringRAL read FBoundary write FBoundary; |
![]() |
property ContentType: StringRAL write SetContentType; |
![]() |
property FormData[idx:Integer]: TRALMultipartFormData read GetFormData; |
![]() |
property OnFormDataComplete: TRALMultipartFormDataComplete read FOnFormDataComplete
write FOnFormDataComplete; |
Description
Methods
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
function FormDataCount: IntegerRAL; |
|
Returns the ammount of items in the Multipart | |
![]() |
function BurnBuffer: PByte; |
|
used to write the info of the Multipart into the stream buffer | |
![]() |
function GetFormData(idx: Integer): TRALMultipartFormData; |
|
Gets an item from the FormData based on the index provided | |
![]() |
function ProcessLine: PByte; |
|
Function that separates Multipart by its lines | |
![]() |
function ResetBuffer: PByte; |
|
Function that initializes the Multipart buffer | |
![]() |
procedure ProcessMultiPart(AStream: TStream); overload; |
|
Processes the Multipart from a Stream input | |
![]() |
procedure ProcessMultiPart(const AString: StringRAL); overload; |
|
Processes the Multipart from a String input | |
![]() |
procedure ClearItems; |
|
destroys the content of the Multipart | |
![]() |
procedure FinalizeItem; |
|
Method called at the end of the Multipart processing to remove linebreaks | |
![]() |
procedure ProcessBuffer(AInput: PByte; AInputLen: IntegerRAL); |
|
Main method that reads the Multipart | |
![]() |
procedure SetContentType(AValue: StringRAL); |
|
Setter function for Content-type | |
Properties
![]() |
property Boundary: StringRAL read FBoundary write FBoundary; |
![]() |
property ContentType: StringRAL write SetContentType; |
![]() |
property FormData[idx:Integer]: TRALMultipartFormData read GetFormData; |
|
Gets an item from the | |
![]() |
property OnFormDataComplete: TRALMultipartFormDataComplete read FOnFormDataComplete
write FOnFormDataComplete; |
GitHub Repository
Generated by PasDoc 0.16.0.


