TDataEvent procedure type
Event type for tracking data transfer progress
Declaration
TDataEvent = procedure(Sender: TObject; const ContentLength: Int64;
const CurrentPos: Int64) of objectArguments
Sender | The HTTP client object that triggered the event |
ContentLength | Total content length in bytes (0 during headers, -1 if unknown) |
CurrentPos | Current position in the content being transferred |
Description
Event type called during data transfer to provide progress information. During header reading, ContentLength is 0. During content reading, ContentLength is -1 if not specified by server.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
