Skip to content

THTTPEventStreamHandler

Event type for handling Server-Sent Events streams

Declaration

Source position: fphttpclient.pp line 88

type
  THTTPEventStreamHandler = procedure(aSender: TObject; 
                                    aSource: TCustomHTTPEventSource)
                                     of object;

Arguments

Name Description
aSender The HTTP client that created the event source
aSource The event source for reading SSE data

Description

Event type called when a Server-Sent Events stream is established, providing access to the event source for reading events.

See also

Name Description
TCustomHTTPEventSource Base class for Server-Sent Events (SSE) client
TFPHTTPClient.OnEventStream Event called when a Server-Sent Events stream is established