Class TRALMultipartEncoder
Unit
Declaration
type TRALMultipartEncoder = class(TObject)
Description
Base class for the object that will create a Multipart on HTTP response
Hierarchy
- TObject
- TRALMultipartEncoder
Overview
Methods
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
function AsStream: TStream; |
![]() |
function FormDataCount: IntegerRAL; |
![]() |
function GetBoundary: StringRAL; |
![]() |
function GetContentType: StringRAL; |
![]() |
procedure AddField(const AName: StringRAL; const AValue: StringRAL); |
![]() |
procedure AddFile(const AName: StringRAL; const AFileName: StringRAL; const AContentType: StringRAL = ''); |
![]() |
procedure AddStream(const AName: StringRAL; const AFileStream: TStream; const AFileName: StringRAL = ''; const AContentType: StringRAL = ''); |
![]() |
procedure SaveToFile(const AFileName: StringRAL); |
![]() |
procedure ClearItems; |
Properties
![]() |
property Boundary: StringRAL read GetBoundary write FBoundary; |
![]() |
property ContentType: StringRAL read GetContentType; |
Description
Methods
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
function AsStream: TStream; |
|
Returns a stream with the content of the Multipart | |
![]() |
function FormDataCount: IntegerRAL; |
|
Gets the ammount of items in the Multipart | |
![]() |
function GetBoundary: StringRAL; |
![]() |
function GetContentType: StringRAL; |
![]() |
procedure AddField(const AName: StringRAL; const AValue: StringRAL); |
|
Adds a pair of UTF8String to the Multipart | |
![]() |
procedure AddFile(const AName: StringRAL; const AFileName: StringRAL; const AContentType: StringRAL = ''); |
|
Adds a file into the multipart based on the AFileName | |
![]() |
procedure AddStream(const AName: StringRAL; const AFileStream: TStream; const AFileName: StringRAL = ''; const AContentType: StringRAL = ''); |
|
Adds a Stream into the multipart with the ContentType informed | |
![]() |
procedure SaveToFile(const AFileName: StringRAL); |
|
Saves the content of the Multipart to an AFileName file | |
![]() |
procedure ClearItems; |
Properties
![]() |
property Boundary: StringRAL read GetBoundary write FBoundary; |
![]() |
property ContentType: StringRAL read GetContentType; |
GitHub Repository
Generated by PasDoc 0.16.0.


