Sign in Join
FPDoc Onlineexperiment

TDataEvent procedure type

In unit fpHTTPClient

Event type for tracking data transfer progress

Declaration

pascal
TDataEvent = procedure(Sender: TObject; const ContentLength: Int64; 
 const CurrentPos: Int64) of object

Arguments

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.