mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.0 KiB
Objective-C
36 lines
1.0 KiB
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
@class SMKUDAccessKey;
|
|
|
|
@interface TSRequest : NSMutableURLRequest
|
|
|
|
@property (nonatomic) BOOL shouldHaveAuthorizationHeaders;
|
|
@property (atomic, nullable) NSString *authUsername;
|
|
@property (atomic, nullable) NSString *authPassword;
|
|
|
|
@property (nonatomic, readonly) NSDictionary<NSString *, id> *parameters;
|
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
|
|
- (instancetype)initWithURL:(NSURL *)URL;
|
|
|
|
- (instancetype)initWithURL:(NSURL *)URL
|
|
cachePolicy:(NSURLRequestCachePolicy)cachePolicy
|
|
timeoutInterval:(NSTimeInterval)timeoutInterval NS_UNAVAILABLE;
|
|
|
|
- (instancetype)initWithURL:(NSURL *)URL
|
|
method:(NSString *)method
|
|
parameters:(nullable NSDictionary<NSString *, id> *)parameters;
|
|
|
|
+ (instancetype)requestWithUrl:(NSURL *)url
|
|
method:(NSString *)method
|
|
parameters:(nullable NSDictionary<NSString *, id> *)parameters;
|
|
|
|
#pragma mark - UD
|
|
|
|
- (void)useUDAuth:(SMKUDAccessKey *)udAccessKey;
|
|
|
|
@end
|