-
Notifications
You must be signed in to change notification settings - Fork 72
/
CKConnectionRequest.h
57 lines (37 loc) · 1.35 KB
/
CKConnectionRequest.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// CKConnectionRequest.h
// Connection
//
// Created by Mike on 13/01/2009.
// Copyright 2009 Karelia Software. All rights reserved.
//
// The equivalent of NSURLRequest when creating a CKConnection.
#import <Foundation/Foundation.h>
extern const NSTimeInterval CKConnectionRequestDefaultTimeoutInterval; // 60 seconds
@interface CKConnectionRequest : NSObject <NSCopying, NSMutableCopying>
{
@protected
NSURL *_URL;
NSTimeInterval _timeoutInterval;
NSDictionary *_extensibleProperties;
}
+ (id)requestWithURL:(NSURL *)URL;
+ (id)requestWithURL:(NSURL *)URL timeoutInterval:(NSTimeInterval)timeoutInterval;
- (id)initWithURL:(NSURL *)URL;
- (id)initWithURL:(NSURL *)URL timeoutInterval:(NSTimeInterval)timeoutInterval;
- (NSURL *)URL;
- (NSTimeInterval)timeoutInterval;
@end
@interface CKMutableConnectionRequest : CKConnectionRequest
- (void)setURL:(NSURL *)URL;
- (void)setTimeoutInterval:(NSTimeInterval)seconds;
@end
// Methods below here are intended purely as support for protocol categories.
// Please do NOT call them from normal application code.
@interface CKConnectionRequest (CKURLRequestExtensibility)
- (id)propertyForKey:(NSString *)key;
@end
@interface CKMutableConnectionRequest (CKURLRequestExtensibility)
- (void)setProperty:(id)value forKey:(NSString *)key;
- (void)removePropertyForKey:(NSString *)key;
@end