TsgcHTTP2ClientMethods › DeleteAsync

DeleteAsync Method

Sends a non-blocking HTTP/2 DELETE; the server reply is delivered on OnHTTP2Response.

Syntax

procedure DeleteAsync(const aURL: string);

Parameters

NameTypeDescription
aURLconst stringAbsolute URL of the resource to delete on the server.

Remarks

Non-blocking variant of Delete. Returns immediately after scheduling the HEADERS frame; the outcome (usually 204 No Content) is reported asynchronously through OnHTTP2Response. Ideal when removing many resources in parallel over the same multiplexed session.

Example

oClient.OnHTTP2Response := OnHTTP2ResponseEvent;
oClient.DeleteAsync('https://api.example.com/users/42');

Back to Methods