property OnGetFromCache: TScRestRequestEvent;

 

type

 TScRestRequestEvent = procedure(const RestRequest: TScRestRequest) of object;

 

Description

Is triggered only if caching is enabled (CacheResponse = True) and the request method is GET (Method = rmGET).

This event occurs before the request is executed and allows you to prevent execution by loading the result from a local cache. To do this, call the RestResponse.LoadFromCache method within the event handler.

RestRequest represents the request to the endpoint that will be executed if the result isn't loaded from the cache.

SecureBridge Components, Copyright © 2007-2025 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support