TsgcHTTP2ClientMethods › TraceAsync

TraceAsync Method

Sends a non-blocking HTTP/2 TRACE request; the echoed payload arrives on OnHTTP2Response.

Syntax

procedure TraceAsync(const aURL: string);

Parameters

NameTypeDescription
aURLconst stringAbsolute URL to target. The request headers seen by the origin server (after traversing any proxies) will be echoed back.

Remarks

Non-blocking variant of Trace. Useful when several TRACE probes are fired against different endpoints without blocking the caller; each reply surfaces through OnHTTP2Response. Remember that many servers reject TRACE for security reasons.

Example

oClient.OnHTTP2Response := OnHTTP2ResponseEvent;
oClient.TraceAsync('https://api.example.com/diag');

Back to Methods