TsgcHTTP3Server › Eventi › OnStartup
Si attiva quando il server HTTP/3 viene avviato ed è pronto ad accettare connessioni.
property OnStartup: TNotifyEvent;
// TNotifyEvent = procedure(Sender: TObject) of object
—
Attivato da Active := True (direttamente o tramite Start) dopo che il socket del listener QUIC è stato associato alla Port (UDP) configurata e il motore QUIC di OpenSSL è pronto ad accettare connessioni HTTP/3. Utilizzare l'evento per registrare che il server è attivo, aggiornare un indicatore di stato nell'interfaccia utente o avviare qualsiasi attività che dipenda dalla disponibilità del listener.
procedure OnStartupEvent(Sender: TObject);
begin
Log('HTTP/3 server listening');
end;