TRestResponse.Age#
Informa, em segundos, a idade declarada pelo header HTTP Age.
Declaração#
property Age: Integer read;Exemplo#
uses Odisseia.Http;
var Client: TRest; Response: TRestResponse;
begin
Client := TRest.Create;
Client.BaseURL := 'https://api.example.com';
Client.Resource := '/health';
Response := Client.Get;
WriteLn(IntToStr(Response.Age));
Client.Close
end.A propriedade é somente leitura e pertence à resposta final. O valor depende do servidor, do provider HTTP e das políticas aplicadas pelo host.