Sign in Join
FPDoc Onlineexperiment

TCustomHTTPEventSource class

In unit fpHTTPClient

Base class for Server-Sent Events (SSE) client

Declaration

pascal
TCustomHTTPEventSource = class(TObject)

Inheritance

  1. TCustomHTTPEventSource
  2. TObject

Descends from it: THTTPEventSource

Description

TCustomHTTPEventSource provides Server-Sent Events functionality for receiving real-time data streams from HTTP servers. It handles the SSE protocol for parsing event streams and provides methods for reading events and checking data availability.

This class is used internally by the HTTP client for SSE support and can be extended for custom SSE implementations.

See also

Properties

Socketprotected
Bufferprotected
Terminatedprotected
HeaderspublicHTTP headers from the original Server-Sent Events request
EOFpublicIndicates whether the event stream has ended

Methods

Terminateprotected
ReadFromSocketprotected
ReadStringprotected
CreatepublicCreates a new Server-Sent Events source
DestroypublicDestroys the Server-Sent Events source
DataAvailablepublicChecks if data is available for reading
ReadEventpublicReads one Server-Sent Event from the stream
ClosepublicCloses the event source connection

Inherited

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.