mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
Update NSURLRequest header to use "instancetype".
This commit is contained in:
parent
291ad8384e
commit
b9a9481c56
3 changed files with 22 additions and 16 deletions
|
@ -99,15 +99,15 @@ typedef NSUInteger NSURLRequestCachePolicy;
|
|||
* and with the default cache policy (NSURLRequestUseProtocolCachePolicy)
|
||||
* and a sixty second timeout.
|
||||
*/
|
||||
+ (id) requestWithURL: (NSURL *)URL;
|
||||
+ (instancetype) requestWithURL: (NSURL *)URL;
|
||||
|
||||
/**
|
||||
* Returns an autoreleased instance initialised with the specified URL,
|
||||
* cachePolicy, and timeoutInterval.
|
||||
*/
|
||||
+ (id) requestWithURL: (NSURL *)URL
|
||||
cachePolicy: (NSURLRequestCachePolicy)cachePolicy
|
||||
timeoutInterval: (NSTimeInterval)timeoutInterval;
|
||||
+ (instancetype) requestWithURL: (NSURL *)URL
|
||||
cachePolicy: (NSURLRequestCachePolicy)cachePolicy
|
||||
timeoutInterval: (NSTimeInterval)timeoutInterval;
|
||||
|
||||
/**
|
||||
* Returns the cache policy associated with the receiver.
|
||||
|
@ -119,15 +119,15 @@ typedef NSUInteger NSURLRequestCachePolicy;
|
|||
* and with the default cache policy (NSURLRequestUseProtocolCachePolicy)
|
||||
* and a sixty second timeout.
|
||||
*/
|
||||
- (id) initWithURL: (NSURL *)URL;
|
||||
- (instancetype) initWithURL: (NSURL *)URL;
|
||||
|
||||
/**
|
||||
* Initialises the receiver with the specified URL,
|
||||
* cachePolicy, and timeoutInterval.
|
||||
*/
|
||||
- (id) initWithURL: (NSURL *)URL
|
||||
cachePolicy: (NSURLRequestCachePolicy)cachePolicy
|
||||
timeoutInterval: (NSTimeInterval)timeoutInterval;
|
||||
- (instancetype) initWithURL: (NSURL *)URL
|
||||
cachePolicy: (NSURLRequestCachePolicy)cachePolicy
|
||||
timeoutInterval: (NSTimeInterval)timeoutInterval;
|
||||
|
||||
/**
|
||||
* Returns the main document URL for the receiver.<br />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue