Creates a Server-Sent Events connection
Source position: fphttpclient.pp line 281
public function TFPCustomHTTPClient.GetEventSource( |
const aMethod: string; |
const aURL: string; |
const aBody: string = '' |
aMethod |
|
The HTTP method to use (typically GET) |
aURL |
|
The URL of the Server-Sent Events endpoint |
aBody |
|
Optional request body data |
The Server-Sent Events source for reading events
Establishes a Server-Sent Events connection to the specified URL and returns an event source for reading events. The connection uses the specified HTTP method and optional request body.
May raise HTTP-related exceptions on connection errors.
|
Base class for Server-Sent Events (SSE) client |
|
|
Event called when a Server-Sent Events stream is established |