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.
		
		
		
		
		
			
		
			
	
	
		
			30 lines
		
	
	
		
			854 B
		
	
	
	
		
			C
		
	
		
		
			
		
	
	
			30 lines
		
	
	
		
			854 B
		
	
	
	
		
			C
		
	
| 
								 
											5 years ago
										 
									 | 
							
								#import <Foundation/Foundation.h>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								NS_ASSUME_NONNULL_BEGIN
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#define textSecureHTTPTimeOut 10
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@interface TSRequest : NSMutableURLRequest
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@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;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@end
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								NS_ASSUME_NONNULL_END
							 |