[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Base class for Server-Sent Events (SSE) client
Source position: fphttpclient.pp line 55
type TCustomHTTPEventSource = class(TObject) |
||
public |
||
constructor Create(); |
|
Creates a new Server-Sent Events source |
destructor Destroy; override; |
|
Destroys the Server-Sent Events source |
function DataAvailable; |
|
Checks if data is available for reading |
function ReadEvent(); |
|
Reads one Server-Sent Event from the stream |
procedure Close; |
|
Closes the event source connection |
|
HTTP headers from the original Server-Sent Events request |
|
property EOF: Boolean; [r] |
|
Indicates whether the event stream has ended |
end; |
|
Base class for Server-Sent Events (SSE) client |
|
| | | ||
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.
|
Default Server-Sent Events source implementation |
|
|
Creates a Server-Sent Events connection |