TsgcHTTP3Client › Methods › TraceAsync
Sends a non-blocking HTTP/3 TRACE request; the reply arrives on OnResponse.
procedure TraceAsync(const aURL: string);
| Name | Type | Description |
|---|---|---|
aURL | const string | Absolute URL of the target resource. |
None. The response is delivered on OnResponse.
The request runs on a background thread and the method returns immediately. The reply is delivered on OnResponse, and a failure is reported on OnError.
TRACE asks the server to echo the received request back to the client. Many servers disable it and answer 405 Method Not Allowed.
The synchronous counterpart is Trace, which blocks and returns the body directly.
The events fire on the background worker thread that carried out the request, not on the main thread. Synchronise before touching VCL or FMX controls from the handler.
oClient.OnResponse := OnResponseEvent;
oClient.TraceAsync('https://api.example.com/v1/items');