mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
NSURLRequest: add new values for NSURLCachePolicy
Add new values for the NSURLCachePolicy enum. Although NSURLRequestReloadIgnoringLocalAndRemoteCacheData and NSURLRequestReloadRevalidatingCacheData have been left unimplemented, the same applies for the reference platform, so not supporting it does not break API compatibility.
This commit is contained in:
parent
8df9e6d73d
commit
aa70ff5300
1 changed files with 11 additions and 6 deletions
|
@ -41,12 +41,17 @@ extern "C" {
|
|||
@class NSString;
|
||||
@class NSURL;
|
||||
|
||||
enum
|
||||
{
|
||||
NSURLRequestUseProtocolCachePolicy,
|
||||
NSURLRequestReloadIgnoringCacheData,
|
||||
NSURLRequestReturnCacheDataElseLoad,
|
||||
NSURLRequestReturnCacheDataDontLoad
|
||||
enum {
|
||||
NSURLRequestUseProtocolCachePolicy = 0,
|
||||
|
||||
NSURLRequestReloadIgnoringLocalCacheData = 1,
|
||||
NSURLRequestReloadIgnoringLocalAndRemoteCacheData = 4,
|
||||
NSURLRequestReloadIgnoringCacheData = NSURLRequestReloadIgnoringLocalCacheData,
|
||||
|
||||
NSURLRequestReturnCacheDataElseLoad = 2,
|
||||
NSURLRequestReturnCacheDataDontLoad = 3,
|
||||
|
||||
NSURLRequestReloadRevalidatingCacheData = 5
|
||||
};
|
||||
/**
|
||||
* <deflist>
|
||||
|
|
Loading…
Reference in a new issue