37typedef struct URLCacheInterface URLCacheInterface;
81struct URLCacheInterface {
86 ObjectInterface objectInterface;
113 void (*removeAllCachedResponses)(
URLCache *self);
131 void (*setMaxSize)(
URLCache *self,
size_t maxSize);
static int request(RESTClient *self, HTTPMethod method, const char *url_string, const Data *body, Data **out_data)
#define OBJECTIVELY_EXPORT
OBJECTIVELY_EXPORT Class * _URLCache(void)
A protocol-agnostic abstraction for requesting resources via URLs.
The runtime representation of a Class.
Object is the root Class of The Objectively Class hierarchy.
A cache for HTTP responses.
Lock * lock
The lock protecting this cache.
size_t currentSize
The current cached body size.
Object object
The superclass.
Dictionary * responses
The cached responses, keyed by URLRequest.
size_t maxSize
The maximum cached body size.
URLCacheInterface * interface
The interface.
A protocol-agnostic abstraction for requesting resources via URLs.
A protocol-agnostic abstraction for URLSessionTask responses.