Unit 'fpHTTPClient' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TCustomHTTPEventSource.ReadEvent

Reads one Server-Sent Event from the stream

Declaration

Source position: fphttpclient.pp line 75

public function TCustomHTTPEventSource.ReadEvent(

  out aEvent: THTTPServerEvent;

  aConcatData: Boolean = True

):Boolean;

Arguments

aEvent

  

The Server-Sent Event that was read

aConcatData

  

Whether to concatenate multi-line event data

Function result

True if an event was successfully read

Description

Reads one Server-Sent Event from the stream. Will block if no data is available. Returns False if no event could be read or the stream is closed.

See also

DataAvailable

  

Checks if data is available for reading


Documentation generated on: Jan 27 2026