Skip to content

ToString

Returns string representation of the server event

Declaration

Source position: httpdefs.pp line 586

function THTTPServerEvent.ToString : AnsiString;

Function result

String representation of the server-sent event

Description

ToString returns the server event formatted according to the Server-Sent Events specification. This includes all relevant fields formatted for transmission to the client.