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
| Public | constructor Create; |
| Public | destructor Destroy; override; |
| Public | function AsStream: TStream; |
| Public | function FormDataCount: IntegerRAL; |
| Protected | function GetBoundary: StringRAL; |
| Protected | function GetContentType: StringRAL; |
| Public | procedure AddField(const AName: StringRAL; const AValue: StringRAL); |
| Public | procedure AddFile(const AName: StringRAL; const AFileName: StringRAL; const AContentType: StringRAL = ''); |
| Public | procedure AddStream(const AName: StringRAL; const AFileStream: TStream; const AFileName: StringRAL = ''; const AContentType: StringRAL = ''); |
| Public | procedure SaveToFile(const AFileName: StringRAL); |
| Protected | procedure ClearItems; |
Properties
| Published | property Boundary: StringRAL read GetBoundary write FBoundary; |
| Published | property ContentType: StringRAL read GetContentType; |
Description
Methods
| Public | constructor Create; |
|
This item has no description. | |
| Public | destructor Destroy; override; |
|
This item has no description. | |
| Public | function AsStream: TStream; |
|
Returns a stream with the content of the Multipart | |
| Public | function FormDataCount: IntegerRAL; |
|
Gets the ammount of items in the Multipart | |
| Protected | function GetBoundary: StringRAL; |
|
This item has no description. | |
| Protected | function GetContentType: StringRAL; |
|
This item has no description. | |
| Public | procedure AddField(const AName: StringRAL; const AValue: StringRAL); |
|
Adds a pair of UTF8String to the Multipart | |
| Public | procedure AddFile(const AName: StringRAL; const AFileName: StringRAL; const AContentType: StringRAL = ''); |
|
Adds a file into the multipart based on the AFileName | |
| Public | procedure AddStream(const AName: StringRAL; const AFileStream: TStream; const AFileName: StringRAL = ''; const AContentType: StringRAL = ''); |
|
Adds a Stream into the multipart with the ContentType informed | |
| Public | procedure SaveToFile(const AFileName: StringRAL); |
|
Saves the content of the Multipart to an AFileName file | |
| Protected | procedure ClearItems; |
|
This item has no description. | |
Properties
| Published | property Boundary: StringRAL read GetBoundary write FBoundary; |
|
This item has no description. | |
| Published | property ContentType: StringRAL read GetContentType; |
|
This item has no description. | |
PascalRAL - GitHub Repository
Generated by PasDoc 1.0.4.