Upgrade to Sparkle 1.21.3.
[macgdbp.git] / Sparkle.framework / Versions / A / Headers / SPUURLRequest.h
1 //
2 // SPUURLRequest.h
3 // Sparkle
4 //
5 // Created by Mayur Pawashe on 5/19/16.
6 // Copyright © 2016 Sparkle Project. All rights reserved.
7 //
8
9 #if __has_feature(modules)
10 @import Foundation;
11 #else
12 #import <Foundation/Foundation.h>
13 #endif
14
15 NS_ASSUME_NONNULL_BEGIN
16
17 // A class that wraps NSURLRequest and implements NSSecureCoding
18 // This class exists because NSURLRequest did not support NSSecureCoding in macOS 10.8
19 // I have not verified if NSURLRequest in 10.9 implements NSSecureCoding or not
20 @interface SPUURLRequest : NSObject <NSSecureCoding>
21
22 // Creates a new URL request
23 // Only these properties are currently tracked:
24 // * URL
25 // * Cache policy
26 // * Timeout interval
27 // * HTTP header fields
28 // * networkServiceType
29 + (instancetype)URLRequestWithRequest:(NSURLRequest *)request;
30
31 @property (nonatomic, readonly) NSURLRequest *request;
32
33 @end
34
35 NS_ASSUME_NONNULL_END