mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Also: * use system cookie parsing * add AESGCM additional authenticated data parameter // FREEBIE
30 lines
944 B
Objective-C
30 lines
944 B
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
@interface TSRequest : NSMutableURLRequest
|
|
|
|
@property (nonatomic) BOOL shouldHaveAuthorizationHeaders;
|
|
@property (nullable) NSString *authUsername;
|
|
@property (nullable) NSString *authPassword;
|
|
|
|
@property (nonatomic, readonly) NSDictionary *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;
|
|
|
|
@end
|