TCustomHTTPEventSource class
Base class for Server-Sent Events (SSE) client
Declaration
TCustomHTTPEventSource = class(TObject)Inheritance
- TCustomHTTPEventSource
- 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
Socket | protected | |
Buffer | protected | |
Terminated | protected | |
Headers | public | HTTP headers from the original Server-Sent Events request |
EOF | public | Indicates whether the event stream has ended |
Methods
Terminate | protected | |
ReadFromSocket | protected | |
ReadString | protected | |
Create | public | Creates a new Server-Sent Events source |
Destroy | public | Destroys the Server-Sent Events source |
DataAvailable | public | Checks if data is available for reading |
ReadEvent | public | Reads one Server-Sent Event from the stream |
Close | public | Closes 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.
