]>
src.bluestatic.org Git - macgdbp.git/blob - SPUURLRequest.h
694961470b00d97d0d05db7691f7afbde931b697
5 // Created by Mayur Pawashe on 5/19/16.
6 // Copyright © 2016 Sparkle Project. All rights reserved.
9 #if __has_feature(modules)
12 #import <Foundation/Foundation.h>
15 NS_ASSUME_NONNULL_BEGIN
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
>
22 // Creates a new URL request
23 // Only these properties are currently tracked:
27 // * HTTP header fields
28 // * networkServiceType
29 + (instancetype
)URLRequestWithRequest
:(NSURLRequest
*)request
;
31 @
property (nonatomic
, readonly
) NSURLRequest
*request
;